mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-23 17:30:42 +00:00
6 lines
109 B
Text
6 lines
109 B
Text
|
vec4 plane_st (mat3 plane, mat3 cam, vec3 vec)
|
||
|
{
|
||
|
vec3 i = plane * (cam * vec);
|
||
|
return vec4 (i/i.z, i.z);
|
||
|
}
|