mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:23:56 +00:00
add file
This commit is contained in:
parent
014396e80c
commit
41791ccaa2
1 changed files with 23 additions and 0 deletions
23
files/materials/quad2.shader
Normal file
23
files/materials/quad2.shader
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#include "core.h"
|
||||||
|
|
||||||
|
#ifdef SH_VERTEX_SHADER
|
||||||
|
|
||||||
|
SH_BEGIN_PROGRAM
|
||||||
|
shUniform(float4x4, wvp) @shAutoConstant(wvp, worldviewproj_matrix)
|
||||||
|
SH_START_PROGRAM
|
||||||
|
{
|
||||||
|
shOutputPosition = shMatrixMult(wvp, shInputPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
SH_BEGIN_PROGRAM
|
||||||
|
shUniform(float3, viewportBackground) @shSharedParameter(viewportBackground)
|
||||||
|
shDeclareMrtOutput(1)
|
||||||
|
SH_START_PROGRAM
|
||||||
|
{
|
||||||
|
shOutputColour(0) = float4(viewportBackground, 1);
|
||||||
|
shOutputColour(1) = float4(1,1,1,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue