Module thin_engine::shaders
source · Constants§
- fragment shader to smooth the harsh edges of a render. see
fxaa_shader()
- vertex shader that doesnt change position or uvs. takes in
Vertex
andTextureCoords
and outputsuv
. intended for use with the screen mesh to draw over the screen. e.g. with the fxaa shader. - simple vertex shader. uniform requires
model: Mat4
,view: Mat4
(Mat4::view_matrix_3d()
orMat4::view_matrix_2d()
) andcamera: Mat4
(inverse camera matrix. useMat4::from_inverse_transform()
)
Functions§
- a shader for smoothing jaggerd pixel edges. use with
fxaa_uniforms
with the input of a texture. (check simple-fxaa example) - for use with the fxaa shader.