38 lines
881 B
Plaintext
38 lines
881 B
Plaintext
material {
|
|
name : TextureProjectionPostProcess,
|
|
depthWrite : false,
|
|
depthCulling : false,
|
|
parameters : [
|
|
{
|
|
type : sampler2d,
|
|
name : rendered
|
|
},
|
|
{
|
|
type : sampler2d,
|
|
name : uvTexture
|
|
}
|
|
],
|
|
variables : [
|
|
footex
|
|
],
|
|
domain: postprocess,
|
|
outputs : [ {
|
|
name : foocolor,
|
|
target : color,
|
|
type : float4
|
|
}],
|
|
featureLevel : 0
|
|
}
|
|
|
|
vertex {
|
|
void postProcessVertex(inout PostProcessVertexInputs postProcess) {
|
|
postProcess.footex.xy = postProcess.normalizedUV;
|
|
postProcess.footex.xy = uvToRenderTargetUV(postProcess.footex.xy);
|
|
}
|
|
}
|
|
|
|
fragment {
|
|
void postProcess(inout PostProcessInputs postProcess) {
|
|
postProcess.foocolor = vec4(1.0, 0.0, 0.0, 1.0); //vec4(variable_footex.xyz, 1.0f);
|
|
}
|
|
} |