1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-04 00:09:40 +00:00
openmw/files/data/shaders/displaydepth.omwfx

26 lines
540 B
Text
Raw Normal View History

2022-05-14 01:58:00 +00:00
uniform_float uFactor {
step = 0.1;
min = 0.01;
max = 20.0;
default = 1.0;
2022-07-24 13:18:50 +00:00
display_name = "#{BuiltInShaders:DisplayDepthFactorName}";
description = "#{BuiltInShaders:DisplayDepthFactorDescription}";
2022-05-14 01:58:00 +00:00
}
fragment main {
omw_In vec2 omw_TexCoord;
void main()
{
omw_FragColor = vec4(vec3(omw_GetLinearDepth(omw_TexCoord) / omw.far * uFactor), 1.0);
2022-05-14 01:58:00 +00:00
}
}
technique {
passes = main;
2022-07-24 13:18:50 +00:00
description = "#{BuiltInShaders:DisplayDepthDescription}";
2022-05-14 01:58:00 +00:00
author = "OpenMW";
version = "1.0";
}