G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.
More...
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License.
◆ ivec1
◆ Texture_glsl
◆ uniform_Texture
#define uniform_Texture |
( |
|
samplerType, |
|
|
|
name |
|
) |
| |
Value:uniform samplerType name##buffer;\
uniform vec3 name##size;\
uniform vec3 name##invSize;\
uniform vec4 name##readMultiplyFirst;\
uniform vec4 name##readAddSecond
Declares a uniform sampler and the float4 readMultiplyFirst and readAddSecond variables.
The host Texture::setShaderArgs call will also bind a macro name##notNull if the arguments are bound on the host side. If they are not bound and the device code does not use them, then GLSL will silently ignore the uniform declarations.
- Parameters
-
samplerType | sampler2D, sampler2DShadow, sampler3D, samplerRect, or samplerCube |
name | Include the underscore suffix |
- See also
- G3D::Texture, G3D::Texture::setShaderArgs, G3D::Args
◆ vec1