Expand description
Named bake-time validators for the data-only assets. Each function clamps or
normalizes an asset’s authored value into a self-consistent runtime value.
The authoring registry names the function via validate: <fn> (or
validate_for: <fn> when the clamp also reads the shader platform the world
is cooked for) and applies it while baking the blob record; a runtime bake
applies the same function before installing the value. The runtime never runs these on a loaded
world – a baked record is already validated.
Functions§
- decal
- Clamp a
Decal’s authored fields into their valid ranges. - directional_
light - Clamp a
DirectionalLight’s authored fields into their valid ranges. - glass_
panel - Clamp a
GlassPanel’s authored fields into their valid ranges. - instanced_
prop - Clamp an
InstancedProp’s authored fields into their valid ranges. - joint
- Clamp a
PhysicsJoint’s authored fields into their valid ranges. - material
- Clamp a
Material’s authored fields into their valid ranges. Material is a data resource, not a registered component, so no generatedfrom_argsruns this – the material compilers call it explicitly before baking the bytes. - particle_
emitter - Clamp a
ParticleEmitter’s authored fields into their valid ranges. - point_
light - Clamp a
PointLight’s authored fields into their valid ranges. - prop
- Clamp a
Prop’s authored fields into their valid ranges. - rect_
area_ light - Clamp a
RectAreaLight’s authored fields into their valid ranges. - reflection_
probe - Clamp a
ReflectionProbe’s authored fields into their valid ranges. - rigid_
body - Reset a
RigidBody’s runtime state on construction. - sdf_
volume - Normalize an authored volume for the runtime: clamp the raymarch knobs to
sane bounds, force shadows off for translucent volumetrics (they write no
depth), and collapse the per-backend
fragment_shadersmap toplatform’sfragment_shader(the DirectX raymarch pass filters volumes by that path’s extension). The step-count bounds stay with the schema: they double as the runtime kernel’s loop bound. - spot_
light - Clamp a
SpotLight’s authored fields into their valid ranges. - volumetric_
fog - Clamp a
VolumetricFog’s authored fields into their valid ranges. - voxel_
chunk - Clamp a
VoxelChunk’s authored fields into their valid ranges. - water_
surface - Clamp a
WaterSurface’s authored fields into their valid ranges.