This commit is contained in:
2026-01-23 19:09:00 +03:00
parent cc82acc18c
commit 65607ee284
72 changed files with 6422 additions and 15 deletions

View File

@@ -0,0 +1,19 @@
#include <OgreUnifiedShader.h>
// Point light shadow volume extrude
uniform mat4 worldviewproj_matrix;
uniform vec4 light_position_object_space; // homogenous, object space
MAIN_PARAMETERS
IN(vec4 uv0, TEXCOORD0)
IN(vec4 position, POSITION)
MAIN_DECLARATION
{
// Extrusion in object space
// Vertex unmodified if w==1, extruded if w==0
vec4 newpos =
(uv0.xxxx * light_position_object_space) +
vec4(position.xyz - light_position_object_space.xyz, 0.0);
gl_Position = mul(worldviewproj_matrix, newpos);
}