Support Forum       G3D Web Page     
Classes | Namespaces | Macros
combineColorTexture.pix File Reference

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
 

Detailed Description

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

Macro Definition Documentation

◆ ADD_OP

#define ADD_OP   1

◆ DIV_OP

#define DIV_OP   3

◆ MIXER

#define MIXER   texelFetch(tex1, ivec2(gl_FragCoord.xy), 0).rgb

◆ MULT_OP

#define MULT_OP   0

Operations for combining textures.

defined by the assimp library at: http://assimp.sourceforge.net/lib_html/material_8h.html#afcd3096d69affba13114cedfc6f9ee6b

◆ SIGNEDADD_OP

#define SIGNEDADD_OP   5

◆ SMOOTHADD_OP

#define SMOOTHADD_OP   4

◆ SUB_OP

#define SUB_OP   2

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