Skip to content

Which (sprite-based) render types support gradients? #2

@ExpHP

Description

@ExpHP

Dai asked a question on Discord about color modes 2 and 3 not working in STD. They had this ANM script:

type(8);
sprite(spr_fire0);
blendMode(1);
scrollY(0.001f);
rotate(rad(90f), 0.0f, 0.0f);
colorMode(3);
alpha(224);
alpha2(0);
stop();

(and they also tried with color/color2)

I took a quick peek at DDC in binary ninja and..... it seems very well possible that mode 8 does not, in fact, support gradients.

Did I never test this? Some day I should take proper notes on which sprite-based render types actually do support gradients. (and this includes the modes for texCircle and friends)

Dai did a test on the 3D render types in WBaWC:

  • 8 and 15: no gradients. (said they both look identical)
  • "also 5 fills the entire screen with the sprite and supports gradients, and 7 does the same thing but without gradients. 7 also blends with background fog" (these probably aren't meant to be used in 3D but just happen to be visible)
  • 4 and 6 billboarding DOES support gradient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions