Support Forum G3D Web Page |
A simple shader designed to combine either two textures or a texture and a color using one of a set of operations. More...
Classes | |
class | glsl::combineColorTexture_pix |
A simple shader designed to combine either two textures or a texture and a color using one of a set of operations. More... | |
Namespaces | |
glsl | |
Macros | |
#define | ADD_OP 1 |
#define | DIV_OP 3 |
#define | MIXER texelFetch(tex1, ivec2(gl_FragCoord.xy), 0).rgb |
#define | MULT_OP 0 |
Operations for combining textures. More... | |
#define | SIGNEDADD_OP 5 |
#define | SMOOTHADD_OP 4 |
#define | SUB_OP 2 |
A simple shader designed to combine either two textures or a texture and a color using one of a set of operations.
This is used to load COLLADA models which may have multiple textures. In order to load them into G3D they are combined into a single texture.
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License
#define ADD_OP 1 |
#define DIV_OP 3 |
#define MIXER texelFetch(tex1, ivec2(gl_FragCoord.xy), 0).rgb |
#define MULT_OP 0 |
Operations for combining textures.
defined by the assimp library at: http://assimp.sourceforge.net/lib_html/material_8h.html#afcd3096d69affba13114cedfc6f9ee6b
#define SIGNEDADD_OP 5 |
#define SMOOTHADD_OP 4 |
#define SUB_OP 2 |