cOMS/shaders/liquids/water/sphere_vertex.hlsl
Dennis Eichhorn 39fbcf4300
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Waiting to run
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
linux bug fixes
2025-03-22 01:10:19 +00:00

8 lines
224 B
HLSL
Executable File

uniform vec3 sphereCenter;
uniform float sphereRadius;
varying vec3 position;
void main() {
position = sphereCenter + gl_Vertex.xyz * sphereRadius;
gl_Position = gl_ModelViewProjectionMatrix * vec4(position, 1.0);
}