cod5-sdk/raw/techniques/treecanopy_dtex_instance.tech
2008-11-20 00:00:00 +00:00

27 lines
805 B
Text

// the actual render pass
{
stateMap "tree_colorpass";
vertexShader 2.0 "treecanopy_smv_dtex.hlsl"
{
treeCanopyMinimumSway = material.treeCanopyMinimumSway;
treeCanopyScaleRotationAngles = material.treeCanopyScaleRotationAngles;
treeCanopyAmbientOcclusion = material.treeCanopyAmbientOcclusion;
}
pixelShader 2.0 "treecanopy_smp.hlsl"
{
colorMapSampler = material.colorMap;
normalMapSampler = material.normalMap;
specularMapSampler = material.specularMap;
treeCanopyScatterColor = material.treeCanopyScatterColor;
treeCanopyLightingAmount = material.treeCanopyLightingAmount;
}
vertex.position = code.position;
vertex.normal = code.normal;
vertex.texcoord[1] = code.tangent;
vertex.color[0] = code.color;
vertex.texcoord[0] = code.texcoord[0];
}