Surface Image
Decal that projects an image (CPU-loaded) or a Texture (GPU-resident) onto the terrain over sector. Use the imageSource constructor for the typical bitmap/URL path (the texture is resolved via RenderContext.getTexture and cached in RenderResourceCache); use the texture constructor when the data already lives on the GPU — e.g. the output of a render-to-texture pass — to skip the upload round-trip entirely.
When both imageSource and texture are set, texture takes precedence.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Image-source path: image is uploaded by RenderResourceCache on first use and cached.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
GPU-direct path: texture is sampled in place by the surface drawable, no upload. Caller owns the lifecycle. Setting this overrides any imageSource resolution.