Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UBOMorph

形变配置的 UBO

Hierarchy

  • UBOMorph

Index

Properties

Static Readonly BINDING

BINDING: UBO_MORPH = ModelLocalBindings.UBO_MORPH

Static Readonly COUNT_BASE_4_BYTES

COUNT_BASE_4_BYTES: number = 4 * Math.ceil(UBOMorph.MAX_MORPH_TARGET_COUNT / 4) + 4

Static Readonly DESCRIPTOR

DESCRIPTOR: DescriptorSetLayoutBinding = new DescriptorSetLayoutBinding(UBOMorph.BINDING, DescriptorType.UNIFORM_BUFFER, 1, ShaderStageFlagBit.VERTEX)

Static Readonly LAYOUT

LAYOUT: UniformBlock = new UniformBlock(SetIndex.LOCAL, UBOMorph.BINDING, UBOMorph.NAME, [new Uniform('cc_displacementWeights', Type.FLOAT4, UBOMorph.MAX_MORPH_TARGET_COUNT / 4),new Uniform('cc_displacementTextureInfo', Type.FLOAT4, 1),], 1)

Static Readonly MAX_MORPH_TARGET_COUNT

MAX_MORPH_TARGET_COUNT: 60 = 60

Static Readonly NAME

NAME: "CCMorph" = "CCMorph"

Static Readonly OFFSET_OF_DISPLACEMENT_TEXTURE_HEIGHT

OFFSET_OF_DISPLACEMENT_TEXTURE_HEIGHT: number = UBOMorph.OFFSET_OF_DISPLACEMENT_TEXTURE_WIDTH + 4

Static Readonly OFFSET_OF_DISPLACEMENT_TEXTURE_WIDTH

OFFSET_OF_DISPLACEMENT_TEXTURE_WIDTH: number = 4 * UBOMorph.MAX_MORPH_TARGET_COUNT

Static Readonly OFFSET_OF_VERTICES_COUNT

OFFSET_OF_VERTICES_COUNT: number = UBOMorph.OFFSET_OF_DISPLACEMENT_TEXTURE_HEIGHT + 4

Static Readonly OFFSET_OF_WEIGHTS

OFFSET_OF_WEIGHTS: 0 = 0

Static Readonly SIZE

SIZE: number = UBOMorph.COUNT_BASE_4_BYTES * 4

Generated using TypeDoc