Support Forum       G3D Web Page     
Classes | Namespaces | Macros
UniversalMaterial.glsl File Reference

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License. More...

Classes

class  glsl::UniversalMaterial_glsl
 Shader program. More...
 

Namespaces

 glsl
 

Macros

#define uniform_UniversalMaterial(name)
 
Declares all material properties. More...
 
#define UniversalMaterial_glsl
 

Detailed Description

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.

Macro Definition Documentation

◆ uniform_UniversalMaterial

#define uniform_UniversalMaterial (   name)
Value:
uniform_Texture(sampler2D, name##LAMBERTIAN_); \
uniform_Texture(sampler2D, name##GLOSSY_); \
uniform_Texture(sampler2D, name##TRANSMISSIVE_); \
uniform float name##etaTransmit; \
uniform float name##etaRatio; \
uniform_Texture(sampler2D, name##EMISSIVE_); \
uniform uint name##flags; \
uniform sampler2D name##normalBumpMap; \
uniform float name##bumpMapScale; \
uniform float name##bumpMapBias;
unsigned int uint
Definition: SVO.h:47
#define uniform_Texture(samplerType, name)
Declares a uniform sampler and the float4 readMultiplyFirst and readAddSecond variables.
Definition: Texture.glsl:39


Declares all material properties.

Additional macros will also be bound by UniversalMaterial::setShaderArgs:

Parameters
nameInclude the underscore suffix, if a name is desired
See also
G3D::UniversalMaterial, G3D::UniversalMaterial::setShaderArgs, G3D::Args, uniform_Texture
Deprecated:

◆ UniversalMaterial_glsl

#define UniversalMaterial_glsl

documentation generated on Wed Nov 24 2021 08:01:50 using doxygen 1.8.15