Skip to content
blotter

class · blotter.ts

MappingMaterial

The built, renderable form of a Material for one Mapping: the composed THREE.ShaderMaterial and the per-text uniform interfaces.

import { MappingMaterial } from "blotter.ts";

Internal plumbing. A Blotter builds one of these on every update() and renders through it. The per-text uniforms you reach through a RenderScope live here.

Members #

constructor constructor

new MappingMaterial ( mapping: Mapping , material: Material , shaderMaterial: ShaderMaterial , userUniformDataTextureObjects: UserUniformDataTextureObjects )

mapping property

readonly mappingMaterial. mapping : Mapping

material property

readonly mappingMaterial. material : Material

shaderMaterial property

readonly mappingMaterial. shaderMaterial : ShaderMaterial

textUniformInterface property

readonly mappingMaterial. textUniformInterface : Record<string, UniformInterfaceMap>

uniformInterface property

readonly mappingMaterial. uniformInterface : UniformInterfaceMap

uniforms get

readonly mappingMaterial. uniforms : UniformInterfaceMap

The material-wide uniform interfaces.

mainImage get

readonly mappingMaterial. mainImage : string

width get

readonly mappingMaterial. width : number

height get

readonly mappingMaterial. height : number

ratio get

readonly mappingMaterial. ratio : number

boundsForText method

mappingMaterial. boundsForText ( text: Text ): TextBounds | undefined

The rectangle a text occupies in the atlas, or undefined.