Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Frag::Background_gbuffer Class Reference

Background gbuffer fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec2 uv
 Texture coordinates.
 
uniform uniform vec3 bgColor
 Background color.
 
uniform bool useTexture
 Should the texture be used instead of the color.
 
out vec4 fragColor
 Color.
 
out vec4 fragNormal
 View space normal.
 
out vec4 fragEffects
 Effects.
 

Detailed Description

Background gbuffer fragment shader.

See also
GPUShaders::Common::Samplers, GPUShaders::Common::Materials, GPUShaders::Common::Utils

Member Function Documentation

◆ main()

void GPUShaders::Frag::Background_gbuffer::main ( )
inline

Transfer color along with the material ID, and output a null normal.


The documentation for this class was generated from the following file: