Module: ol/webgl/ShaderBuilder

ol/webgl/ShaderBuilder


Classes and utilities for generating shaders from literal style objects

Type Definitions

StyleParseResult{Object}

Properties:
Name Type Description
builder module:ol/webgl/ShaderBuilder.ShaderBuilder

Shader builder pre-configured according to a given style

uniforms Object.<string, module:ol/webgl/Helper~UniformValue>

Uniform definitions.

attributes Array.<module:ol/renderer/webgl/PointsLayer~CustomAttribute>

Attribute descriptions.

VaryingDescription{Object}

Properties:
Name Type Description
name string

Varying name, as will be declared in the header.

type string

Varying type, either float, vec2, vec4...

expression string

Expression which will be assigned to the varying in the vertex shader, and passed on to the fragment shader.