Support Forum G3D Web Page |
For use with G3D::Shader.
More...
Public Member Functions | |
DECLARE_GBUFFER (svo) layout(r32ui | |
The tree itself. More... | |
layout (r32ui, bindless_image) uniform uimageBuffer parentIndexBuffer | |
layout (r32ui, bindless_image) uniform uimageBuffer levelIndexBuffer | |
GLSL_FUNC_DEC int | svoGetNodeIndex (SVO_LEVEL_VAR_TYPE targetLevel, SVO_COORD_VAR_TYPE targetPos) |
GLSL_FUNC_DEC int | svoGetNodeIndex (SVO_LEVEL_VAR_TYPE targetLevel, SVO_COORD_VAR_TYPE targetPos, GLSL_OUT_PARAM(SVO_LEVEL_VAR_TYPE) outLevel) |
Public Attributes | |
bindless_image uniform uimageBuffer | childIndexBuffer |
uniform usamplerBuffer | childIndexBufferTex |
uniform uint * | d_childIndexBuffer |
coherent volatile uniform uint * | d_parentIndexBuffer |
coherent volatile uniform uint * | d_rootIndexBuffer |
uniform int | groundTruthMode |
uniform uint | octreePoolNumNodes |
uniform vec2 | projectionOffset |
uniform float | projectionScale |
uniform usamplerBuffer | rootIndexBufferTex |
vec3 | svo_triangle_normal |
uniform mat4 | svoWorldToSVOMat |
For use with G3D::Shader.
This file is included into NonShadowedPass.pix and ShadowMappedLightPass.pix. This files define helper functions for manipulating Sparse Voxel Octrees.
glsl::SVO_glsl::DECLARE_GBUFFER | ( | svo | ) |
The tree itself.
The top part of the tree is used for traversal. The leaves are then flagged with 0xFFFFFFFF if they have any child
glsl::SVO_glsl::layout | ( | r32ui | , |
bindless_image | |||
) |
glsl::SVO_glsl::layout | ( | r32ui | , |
bindless_image | |||
) |
GLSL_FUNC_DEC int glsl::SVO_glsl::svoGetNodeIndex | ( | SVO_LEVEL_VAR_TYPE | targetLevel, |
SVO_COORD_VAR_TYPE | targetPos | ||
) |
GLSL_FUNC_DEC int glsl::SVO_glsl::svoGetNodeIndex | ( | SVO_LEVEL_VAR_TYPE | targetLevel, |
SVO_COORD_VAR_TYPE | targetPos, | ||
GLSL_OUT_PARAM(SVO_LEVEL_VAR_TYPE) | outLevel | ||
) |
bindless_image uniform uimageBuffer glsl::SVO_glsl::childIndexBuffer |
uniform usamplerBuffer glsl::SVO_glsl::childIndexBufferTex |
uniform uint* glsl::SVO_glsl::d_childIndexBuffer |
coherent volatile uniform uint* glsl::SVO_glsl::d_parentIndexBuffer |
coherent volatile uniform uint* glsl::SVO_glsl::d_rootIndexBuffer |
uniform int glsl::SVO_glsl::groundTruthMode |
uniform uint glsl::SVO_glsl::octreePoolNumNodes |
uniform vec2 glsl::SVO_glsl::projectionOffset |
uniform float glsl::SVO_glsl::projectionScale |
uniform usamplerBuffer glsl::SVO_glsl::rootIndexBufferTex |
vec3 glsl::SVO_glsl::svo_triangle_normal |
uniform mat4 glsl::SVO_glsl::svoWorldToSVOMat |