- getCastShadowsSetting
GeometryInstance.ShadowCastingSetting getCastShadowsSetting()
- getExtraCullMargin
double getExtraCullMargin()
- getFlag
bool getFlag(long flag)
- getGenerateLightmap
bool getGenerateLightmap()
- getLightmapScale
GeometryInstance.LightmapScale getLightmapScale()
- getLodMaxDistance
double getLodMaxDistance()
- getLodMaxHysteresis
double getLodMaxHysteresis()
- getLodMinDistance
double getLodMinDistance()
- getLodMinHysteresis
double getLodMinHysteresis()
- getMaterialOverride
Ref!Material getMaterialOverride()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(GeometryInstance other)
- opEquals
bool opEquals(typeof(null) n)
- setCastShadowsSetting
void setCastShadowsSetting(long shadow_casting_setting)
- setCustomAabb
void setCustomAabb(AABB aabb)
Overrides the bounding box of this node with a custom one. To remove it, set an AABB with all fields set to zero.
- setExtraCullMargin
void setExtraCullMargin(double margin)
- setFlag
void setFlag(long flag, bool value)
- setGenerateLightmap
void setGenerateLightmap(bool enabled)
- setLightmapScale
void setLightmapScale(long scale)
- setLodMaxDistance
void setLodMaxDistance(double mode)
- setLodMaxHysteresis
void setLodMaxHysteresis(double mode)
- setLodMinDistance
void setLodMinDistance(double mode)
- setLodMinHysteresis
void setLodMinHysteresis(double mode)
- setMaterialOverride
void setMaterialOverride(Material material)
- toHash
size_t toHash()
- castShadow
GeometryInstance.ShadowCastingSetting castShadow [@property getter]
long castShadow [@property setter]
The selected shadow casting flag. See shadowcastingsetting for possible values.
- extraCullMargin
double extraCullMargin [@property getter]
double extraCullMargin [@property setter]
The extra distance added to the GeometryInstance's bounding box (AABB) to increase its cull box.
- generateLightmap
bool generateLightmap [@property getter]
bool generateLightmap [@property setter]
When disabled, the mesh will be taken into account when computing indirect lighting, but the resulting lightmap will not be saved. Useful for emissive only materials or shadow casters.
- lightmapScale
GeometryInstance.LightmapScale lightmapScale [@property getter]
long lightmapScale [@property setter]
Scale factor for the generated baked lightmap. Useful for adding detail to certain mesh instances.
- lodMaxDistance
double lodMaxDistance [@property getter]
double lodMaxDistance [@property setter]
The GeometryInstance's max LOD distance.
Note: This property currently has no effect.
- lodMaxHysteresis
double lodMaxHysteresis [@property getter]
double lodMaxHysteresis [@property setter]
The GeometryInstance's max LOD margin.
Note: This property currently has no effect.
- lodMinDistance
double lodMinDistance [@property getter]
double lodMinDistance [@property setter]
The GeometryInstance's min LOD distance.
Note: This property currently has no effect.
- lodMinHysteresis
double lodMinHysteresis [@property getter]
double lodMinHysteresis [@property setter]
The GeometryInstance's min LOD margin.
Note: This property currently has no effect.
- useInBakedLight
bool useInBakedLight [@property getter]
bool useInBakedLight [@property setter]
If true, this GeometryInstance will be used when baking lights using a GIProbe or BakedLightmap.
Base node for geometry-based visual instances.
Shares some common functionality like visibility and custom materials.