Waterflow
Visualize water in terrain
LightParams Struct Reference

Light uniform. More...

#include <myDrawable.h>

List of all members.

Public Attributes

glm::vec3 color
 Color of the light.
GLfloat isDirectional
 Is the light directional or not.
glm::vec3 position
 Position of the light.
GLfloat specularComponent
 Specular exponent of the light (should probably be part of material not light)

Detailed Description

Light uniform.

Used as a uniform buffer to avoid sending the lights more than once to the GPU. Use this as an array to send multiple lights to the shader programs.

Note:
The order of the parameters is very important since the GPU needs to pack the arrays in a certain way. Please refer to OpenGL documentation for more information.

Definition at line 25 of file myDrawable.h.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Enumerations