GPU-Accelerated Coverage  0.1.0
Compute coverage tours for known environment with articulated objects on GPU
Classes | Public Member Functions | Public Attributes | List of all members
articulation::shader::visual_texture::FragmentShader Class Reference

Fragment shader for rendering a textured mesh. More...

Classes

struct  LightInfo
 Properties of a point light source. More...
 
struct  MaterialInfo
 Properties of a material. More...
 

Public Member Functions

void main ()
 

Public Attributes

uniform bool has_texture
 true if object has texture, false if material should be used instead.
 
uniform sampler2D texture_unit
 Texture unit for sampling the object texture.
 
in vec2 tex_coord
 Texture coordinate passed in from vertex shader.
 
in float diffuse_factor
 Diffuse factor passed in from vertex shader.
 
in float specular_factor
 Specular factor passed in from vertex shader.
 
out vec4 frag_color
 Output fragment color.
 
uniform LightInfo light
 Point light source.
 
uniform MaterialInfo material
 Material of the object.
 

Detailed Description

Fragment shader for rendering a textured mesh.

Author
Stefan Osswald
Date
2018
Remarks
Fragment-Shader

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