VertexShader.fromAsset constructor

VertexShader.fromAsset(
  1. String assetName, {
  2. String entryPoint = 'TextureVertex',
  3. List<String> slots = const [],
})

A Shader that runs per-vertex to transform geometry from model space to screen space.

Typically used to apply model, view, and projection transforms, as well as skeletal animation via joint matrices.

Implementation

VertexShader.fromAsset(
  super.assetName, {
  super.entryPoint = 'TextureVertex',
  super.slots = const [],
}) : super.fromAsset();