SpatialMaterial.Flags

Values

ValueMeaning
flagUnshaded0

No lighting is used on the object. Color comes directly from ALBEDO.

flagUseVertexLighting1

Lighting is calculated per-vertex rather than per-pixel. This can be used to increase the speed of the shader at the cost of quality.

flagDisableDepthTest2

Disables the depth test, so this object is drawn on top of all others. However, objects drawn after it in the draw order may cover it.

flagAlbedoFromVertexColor3

Set ALBEDO to the per-vertex color specified in the mesh.

flagSrgbVertexColor4

Vertex color is in sRGB space and needs to be converted to linear. Only applies in the GLES3 renderer.

flagUsePointSize5

Uses point size to alter the size of primitive points. Also changes the albedo texture lookup to use POINT_COORD instead of UV.

flagFixedSize6

Object is scaled by depth so that it always appears the same size on screen.

flagBillboardKeepScale7

Shader will keep the scale set for the mesh. Otherwise the scale is lost when billboarding. Only applies when paramsBillboardMode is constant BILLBOARD_ENABLED.

flagUv1UseTriplanar8

Use triplanar texture lookup for all texture lookups that would normally use UV.

flagUv2UseTriplanar9

Use triplanar texture lookup for all texture lookups that would normally use UV2.

flagTriplanarUseWorld10

Use world coordinates in the triplanar texture lookup instead of local coordinates.

flagAoOnUv211

Use UV2 coordinates to look up from the aoTexture.

flagEmissionOnUv212

Use UV2 coordinates to look up from the emissionTexture.

flagUseAlphaScissor13

Use alpha scissor. Set by paramsUseAlphaScissor.

flagAlbedoTextureForceSrgb14

Forces the shader to convert albedo from sRGB space to linear space.

flagDontReceiveShadows15

Disables receiving shadows from other objects.

flagEnsureCorrectNormals16

Ensures that normals appear correct, even with non-uniform scaling.

flagDisableAmbientLight17

Disables receiving ambient light.

flagUseShadowToOpacity18

Enables the shadow to opacity feature.

flagMax19

Represents the size of the flags enum.

Meta