|
bool | use_alpha = false |
|
bool | use_float = false |
|
gmCore::size2 | resolution = { 1024, 1024 } |
|
OffscreenRenderTargets | render_target |
|
RasterProcessor | raster_processor |
|
GLenum | pixel_format |
|
std::vector< std::shared_ptr< View > > | views |
|
size_t | cache_frame = std::numeric_limits<size_t>::max() |
|
bool | is_setup = false |
|
bool | is_functional = false |
|
|
static const std::string | fragment_code |
|
◆ fragment_code
const std::string gramods::gmGraphics::ViewTexture::Impl::fragment_code |
|
static |
Initial value:=
R"lang=glsl(
#version 330 core
uniform sampler2D tex;
in vec2 position;
out vec4 fragColor;
void main() {
vec3 rgb = texture(tex, position * 0.5 + 0.5).rgb;
fragColor = vec4(rgb, 1);
}
)lang=glsl"
The documentation for this struct was generated from the following file:
- /home/karlu/private/program/gramods/modules/gmGraphics/src/ViewTexture.cpp