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 and TextureCoords and outputs uv. 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() or Mat4::view_matrix_2d()) and camera: Mat4 (inverse camera matrix. use Mat4::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.