Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::UniversalSurface_render_pix Class Reference

Shader program. More...

Public Member Functions

void main ()
 
void writePixel (Radiance3 premultipliedReflectionAndEmission, float coverage, Color3 transmissionCoefficient, float smoothness, float etaRatio, Point3 csPosition, Vector3 csNormal)
 

Public Attributes

out float4 _result
 
const vec3 _tsE = vec3(0, 0, 0)
 
uniform sampler2D ambientOcclusion_buffer
 
uniform ivec2 ambientOcclusion_offset
 
uniform vec3 ambientOcclusion_size
 
uniform sampler2D background
 Image of the background plane. More...
 
uniform float2 backgroundMaxCoord
 
uniform float2 backgroundMinCoord
 
uniform float backgroundZ
 Camera space z position of the background plane; Negative number. More...
 
float backside = (gl_FrontFacing == g3d_InvertY) ? 1.0 : -1.0
 
uniform vec2 backSizeMeters
 
uniform vec3 clipInfo
 For the current camera. More...
 
in Point3 csPosition
 Surface position in camera space. More...
 
uniform sampler2D depthBuffer
 The depth buffer for the current framebuffer. More...
 
uniform float etaRatio
 
vec2 lightMapCoord = vec2(0, 0)
 
uniform UniversalMaterial2D material
 
const vec3 tan_X = vec3(0, 0, 0)
 
const vec3 tan_Y = vec3(0, 0, 0)
 
in vec3 tan_Z
 
in vec2 texCoord
 
const Color4 vertexColor = Color4(0,0,0,0)
 
in Point3 wsPosition
 Surface position in world space. More...
 

Detailed Description

Shader program.

Member Function Documentation

◆ main()

void glsl::UniversalSurface_render_pix::main ( void  )
inline

◆ writePixel()

void glsl::UniversalSurface_render_pix::writePixel ( Radiance3  premultipliedReflectionAndEmission,
float  coverage,
Color3  transmissionCoefficient,
float  smoothness,
float  etaRatio,
Point3  csPosition,
Vector3  csNormal 
)
inline

Member Data Documentation

◆ _result

out float4 glsl::UniversalSurface_render_pix::_result

◆ _tsE

const vec3 glsl::UniversalSurface_render_pix::_tsE = vec3(0, 0, 0)

◆ ambientOcclusion_buffer

uniform sampler2D glsl::UniversalSurface_render_pix::ambientOcclusion_buffer

◆ ambientOcclusion_offset

uniform ivec2 glsl::UniversalSurface_render_pix::ambientOcclusion_offset

◆ ambientOcclusion_size

uniform vec3 glsl::UniversalSurface_render_pix::ambientOcclusion_size

◆ background

uniform sampler2D glsl::UniversalSurface_render_pix::background

Image of the background plane.

◆ backgroundMaxCoord

uniform float2 glsl::UniversalSurface_render_pix::backgroundMaxCoord

◆ backgroundMinCoord

uniform float2 glsl::UniversalSurface_render_pix::backgroundMinCoord

◆ backgroundZ

uniform float glsl::UniversalSurface_render_pix::backgroundZ

Camera space z position of the background plane; Negative number.

◆ backside

float glsl::UniversalSurface_render_pix::backside = (gl_FrontFacing == g3d_InvertY) ? 1.0 : -1.0

◆ backSizeMeters

uniform vec2 glsl::UniversalSurface_render_pix::backSizeMeters

◆ clipInfo

uniform vec3 glsl::UniversalSurface_render_pix::clipInfo

For the current camera.

Only has a defined value when rendering a partial coverage surface in a blended pass.

◆ csPosition

in Point3 glsl::UniversalSurface_render_pix::csPosition

Surface position in camera space.

◆ depthBuffer

uniform sampler2D glsl::UniversalSurface_render_pix::depthBuffer

The depth buffer for the current framebuffer.

It is not safe to read from this if the current pass is also writing to the depth buffer

◆ etaRatio

uniform float glsl::UniversalSurface_render_pix::etaRatio

◆ lightMapCoord

vec2 glsl::UniversalSurface_render_pix::lightMapCoord = vec2(0, 0)

◆ material

uniform UniversalMaterial2D glsl::UniversalSurface_render_pix::material

◆ tan_X

const vec3 glsl::UniversalSurface_render_pix::tan_X = vec3(0, 0, 0)

◆ tan_Y

const vec3 glsl::UniversalSurface_render_pix::tan_Y = vec3(0, 0, 0)

◆ tan_Z

in vec3 glsl::UniversalSurface_render_pix::tan_Z

◆ texCoord

in vec2 glsl::UniversalSurface_render_pix::texCoord

◆ vertexColor

const Color4 glsl::UniversalSurface_render_pix::vertexColor = Color4(0,0,0,0)

◆ wsPosition

in Point3 glsl::UniversalSurface_render_pix::wsPosition

Surface position in world space.


documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15