formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Render Materials
Description
Identifies the bits of the flags argument to the function fz_shdr_ptr_get_info. The bits contain information about a shader, such as whether a shader is wrapped or whether it is based on an image map.
enum fz_shdr_info_flags_enum {
FZ_SHDR_INFO_HAS_TXR,
FZ_SHDR_INFO_HAS_RNDM,
FZ_SHDR_INFO_HAS_SCALE,
FZ_SHDR_INFO_HAS_ASAMPLE,
FZ_SHDR_INFO_HAS_RAYTRACE,
FZ_SHDR_INFO_HAS_AMBT,
FZ_SHDR_INFO_HAS_DIFF,
FZ_SHDR_INFO_HAS_SPEC,
FZ_SHDR_INFO_HAS_MIRR,
FZ_SHDR_INFO_HAS_TRNS,
FZ_SHDR_INFO_HAS_GLOW,
FZ_SHDR_INFO_HAS_SPEC_COL,
FZ_SHDR_INFO_IS_DEFAULT,
FZ_SHDR_INFO_IS_SOLID,
FZ_SHDR_INFO_IS_WRAPPED,
FZ_SHDR_INFO_IS_PLAIN_COL,
FZ_SHDR_INFO_IS_TMAP_BASED,
FZ_SHDR_INFO_IS_SCRIPT,
FZ_SHDR_INFO_IS_PLUGIN };
Members
FZ_SHDR_INFO_HAS_TXR
If set, the shader has a 2d or 3d texture (pattern). Note, that this simply indicates, that the shader creates some kind of pattern as opposed to creating a uniform color (or transparency or bumps). It does not indicate that the shader uses a texture map. This is done by FZ_SHDR_INFO_IS_TMAP_BASED.
FZ_SHDR_INFO_HAS_RNDM
If set, the shader uses random noise.
FZ_SHDR_INFO_HAS_SCALE
If set, the shader has the standard scale parameter. That is, the pattern is scalable.
FZ_SHDR_INFO_HAS_ASAMPLE
If set, the shader has the standard area sampling parameter.
FZ_SHDR_INFO_HAS_RAYTRACE
If set, the shader is a reflection shader and uses raytracing to compute aspects of the shading, such a mirror or transmission effects.
FZ_SHDR_INFO_HAS_AMBT
If set, the shader is a reflection shader and uses the standard ambient reflection parameter
FZ_SHDR_INFO_HAS_DIFF
If set, the shader is a reflection shader and uses the standard diffuse reflection parameter
FZ_SHDR_INFO_HAS_SPEC
If set, the shader is a reflection shader and uses the standard specular reflection parameter
FZ_SHDR_INFO_HAS_MIRR
If set, the shader is a reflection shader and uses the standard mirror reflection parameter
FZ_SHDR_INFO_HAS_TRNS
If set, the shader is a reflection shader and uses the standard transmission reflection parameter
FZ_SHDR_INFO_HAS_GLOW
If set, the shader is a reflection shader and uses the standard glow reflection parameter
FZ_SHDR_INFO_HAS_SPEC_COL
If set, the shader is a reflection shader and uses the standard specular color reflection parameter
FZ_SHDR_INFO_IS_DEFAULT
If set, the shader is the default shader in its class.
FZ_SHDR_INFO_IS_SOLID
If set, the shader is a solid shader.
FZ_SHDR_INFO_IS_WRAPPED
If set, the shader is a wrapped shader.
FZ_SHDR_INFO_IS_PLAIN_COL
If set, the shader uses a plain color.
FZ_SHDR_INFO_IS_TMAP_BASED
If set, the shader is based on a texture map.
FZ_SHDR_INFO_IS_SCRIPT
If set, the shader is defined by a script.
FZ_SHDR_INFO_IS_PLUGIN
If set, the shader is defined by a plugin.
Availability
5.5.0.0
Defined in