Module dagon.graphics.texproc

Provides utilities for GPU-accelerated texture processing.

Functions

NameDescription
combineTextures(channels, output) Combines up to four textures into a single output texture using the GPU.
combineTextures(w, h, channels, owner) Combines up to four textures into a new output texture of the given size using the GPU.
generateCubemap(inputEnvmap, output) Creates a cube map texture from an equirectangular environment map using the GPU.
generateCubemap(resolution, inputEnvmap, owner) Creates a cube map texture from an equirectangular environment map using the GPU.
prefilterCubemap(inputCubemap, outputCubemap) Prefilters a cube map texture using the GPU.
prefilterCubemap(resolution, inputCubemap, owner) Prefilters a cube map texture using the GPU.

Classes

NameDescription
CubemapGeneratorShader Shader for converting equirectangular environment maps to cube maps.
CubemapPrefilterShader Shader for prefiltering cube maps (convolving with the GGX BRDF).
TextureCombinerShader Shader for combining up to four textures into a single output.