History: CelShading.material
Source of version: 3 (current)
Copy to clipboard
!Description
This is not a whole "material". This material file provides two abstract passes for your own materials to inherit from.
!Code
{CODE(wrap="1", colors="c++")}//
// Cel shading surface colors only.
abstract pass CelShading
{
vertex_program_ref CelShadingVP {}
fragment_program_ref CelShadingFP {}
texture_unit diffRamp {
texture cel_shading_diffuse.png 1d
tex_address_mode clamp }
texture_unit specRamp {
texture cel_shading_specular.png 1d
tex_address_mode clamp }
}
//
// Cel shading with a decal texture.
abstract pass CelShadingDecal
{
vertex_program_ref CelShadingVP {}
fragment_program_ref CelShadingDecalFP {}
texture_unit diffRamp {
texture cel_shading_diffuse.png 1d
tex_address_mode clamp }
texture_unit specRamp {
texture cel_shading_specular.png 1d
tex_address_mode clamp }
texture_unit decal {}
}
//
// Cel shading with a decal texture and specular mapping.
abstract pass CelShadingDecalSpec
{
vertex_program_ref CelShadingVP {}
fragment_program_ref CelShadingDecalSpecFP {}
texture_unit diffRamp {
texture cel_shading_diffuse.png 1d
tex_address_mode clamp }
texture_unit specRamp {
texture cel_shading_specular.png 1d
tex_address_mode clamp }
texture_unit decal {}
texture_unit specMap {}
}{CODE}