diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-02-26 18:04:06 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-02-28 13:41:37 +0000 |
| commit | 1e08193a1678675ac5869b76e8a2339f6de5b773 (patch) | |
| tree | c9a47be9f06f69a06be2f43d371a88e1c507669e /gfx/gl/shaders/billboardPainter.vert | |
| parent | Tidy the preFrame logic into a single function in SceneRenderer (diff) | |
| download | ilt-1e08193a1678675ac5869b76e8a2339f6de5b773.tar.bz2 ilt-1e08193a1678675ac5869b76e8a2339f6de5b773.tar.xz ilt-1e08193a1678675ac5869b76e8a2339f6de5b773.zip | |
Support for the BillboardPainter
Based on the ShadowStenciller, creates flattened images of a model for
simplified mass use in a scene.
Diffstat (limited to 'gfx/gl/shaders/billboardPainter.vert')
| -rw-r--r-- | gfx/gl/shaders/billboardPainter.vert | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gfx/gl/shaders/billboardPainter.vert b/gfx/gl/shaders/billboardPainter.vert new file mode 100644 index 0000000..d7c1219 --- /dev/null +++ b/gfx/gl/shaders/billboardPainter.vert @@ -0,0 +1,23 @@ +#version 460 core + +layout(binding = 1) uniform usampler2DRect materialData; + +include(`meshIn.glsl') +include(`materialDetail.glsl') +include(`getMaterialDetail.glsl') + +out vec3 FragPos; +out vec2 TexCoords; +flat out MaterialDetail Material; +out vec3 Normal; +out vec4 Colour; + +void +main() +{ + TexCoords = texCoord; + Material = getMaterialDetail(material); + FragPos = position; + Colour = colour; + Normal = normal; +} |
