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

Colored object fragment shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec3 n
 The world-space normal.
 
uniform int matID
 The material index.
 
out vec4 fragNormal
 Normal.
 
out float fragId
 Material ID.
 

Detailed Description

Colored object fragment shader.

See also
GPUShaders::Common::Utils

Member Function Documentation

◆ main()

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

Outputs the object world-space normal and the material index.


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