Module shaders

Source

Constants§

FXAA
fragment shader to smooth the harsh edges of a render. see fxaa_shader()
SCREEN_VERTEX
vertex shader that doesnt change position or uvs. takes in Vertex and TextureCoords and outputs uv. intended for use with the screen mesh to draw over the screen. e.g. with the fxaa shader.
VERTEX
simple vertex shader. uniform requires model: Mat4, view: Mat4 (Mat4::view_matrix_3d() or Mat4::view_matrix_2d()) and camera: Mat4 (inverse camera matrix. use Mat4::from_inverse_transform() or call inverse() before feeding it to the shader)

Functions§

fxaa_shader
a shader for smoothing jaggerd pixel edges. use with fxaa_uniforms with the input of a texture. (check simple-fxaa example)
fxaa_uniforms
for use with the fxaa shader.