cod4-sdk/raw/techniques/distortion_shade.tech

22 lines
441 B
Text
Raw Permalink Normal View History

2008-01-19 00:00:00 +00:00
{
stateMap "default";
vertexShader 2.0 "distortion_shade.hlsl"
{
distortionScale = material.distortionScale;
}
pixelShader 2.0 "distortion.hlsl"
{
colorMapSampler = sampler.resolvedPostSun;
normalMapSampler = material.colorMap;
}
vertex.position = code.position;
vertex.normal = code.normal;
vertex.color[0] = code.color;
vertex.texcoord[0] = code.texcoord[0];
vertex.texcoord[1] = code.tangent;
}