SpatialMaterialFlags Enumeration |
[Missing <summary> documentation for "T:Godot.SpatialMaterial.Flags"]
Namespace: Godot
public enum Flags
| Member name | Value | Description | |
|---|---|---|---|
| Unshaded | 0 | No lighting is used on the object. Color comes directly from ALBEDO. | |
| UseVertexLighting | 1 | 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. | |
| DisableDepthTest | 2 | 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. | |
| AlbedoFromVertexColor | 3 | Set ALBEDO to the per-vertex color specified in the mesh. | |
| SrgbVertexColor | 4 | Vertex color is in sRGB space and needs to be converted to linear. Only applies in the GLES3 renderer. | |
| UsePointSize | 5 | Uses point size to alter the size of primitive points. Also changes the albedo texture lookup to use POINT_COORD instead of UV. | |
| FixedSize | 6 | Object is scaled by depth so that it always appears the same size on screen. | |
| BillboardKeepScale | 7 | Shader will keep the scale set for the mesh. Otherwise the scale is lost when billboarding. Only applies when ParamsBillboardMode is . | |
| Uv1UseTriplanar | 8 | Use triplanar texture lookup for all texture lookups that would normally use UV. | |
| Uv2UseTriplanar | 9 | Use triplanar texture lookup for all texture lookups that would normally use UV2. | |
| AoOnUv2 | 11 | Use UV2 coordinates to look up from the AoTexture. | |
| EmissionOnUv2 | 12 | Use UV2 coordinates to look up from the EmissionTexture. | |
| UseAlphaScissor | 13 | Use alpha scissor. Set by ParamsUseAlphaScissor. | |
| TriplanarUseWorld | 10 | Use world coordinates in the triplanar texture lookup instead of local coordinates. | |
| AlbedoTextureForceSrgb | 14 | Forces the shader to convert albedo from sRGB space to linear space. | |
| DontReceiveShadows | 15 | Disables receiving shadows from other objects. | |
| DisableAmbientLight | 17 | Disables receiving ambient light. | |
| EnsureCorrectNormals | 16 | Ensures that normals appear correct, even with non-uniform scaling. | |
| UseShadowToOpacity | 18 | Enables the shadow to opacity feature. | |
| Max | 19 | Represents the size of the SpatialMaterialFlags enum. |