Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UBOCamera

全局相机 UBO。

Hierarchy

  • UBOCamera

Index

Properties

Static Readonly AMBIENT_GROUND_OFFSET

AMBIENT_GROUND_OFFSET: number = UBOCamera.AMBIENT_SKY_OFFSET + 4

Static Readonly AMBIENT_SKY_OFFSET

AMBIENT_SKY_OFFSET: number = UBOCamera.MAIN_LIT_COLOR_OFFSET + 4

Static Readonly BINDING

BINDING: UBO_CAMERA = PipelineGlobalBindings.UBO_CAMERA

Static Readonly CAMERA_POS_OFFSET

CAMERA_POS_OFFSET: number = UBOCamera.MAT_VIEW_PROJ_INV_OFFSET + 16

Static Readonly COUNT

COUNT: number = UBOCamera.GLOBAL_FOG_ADD_OFFSET + 4

Static Readonly DESCRIPTOR

DESCRIPTOR: DescriptorSetLayoutBinding = new DescriptorSetLayoutBinding(UBOCamera.BINDING, DescriptorType.UNIFORM_BUFFER, 1, ShaderStageFlagBit.ALL)

Static Readonly EXPOSURE_OFFSET

EXPOSURE_OFFSET: number = UBOCamera.SCREEN_SCALE_OFFSET + 4

Static Readonly GLOBAL_FOG_ADD_OFFSET

GLOBAL_FOG_ADD_OFFSET: number = UBOCamera.GLOBAL_FOG_BASE_OFFSET + 4

Static Readonly GLOBAL_FOG_BASE_OFFSET

GLOBAL_FOG_BASE_OFFSET: number = UBOCamera.GLOBAL_FOG_COLOR_OFFSET + 4

Static Readonly GLOBAL_FOG_COLOR_OFFSET

GLOBAL_FOG_COLOR_OFFSET: number = UBOCamera.AMBIENT_GROUND_OFFSET + 4

Static Readonly LAYOUT

LAYOUT: UniformBlock = new UniformBlock(SetIndex.GLOBAL, UBOCamera.BINDING, UBOCamera.NAME, [new Uniform('cc_matView', Type.MAT4, 1),new Uniform('cc_matViewInv', Type.MAT4, 1),new Uniform('cc_matProj', Type.MAT4, 1),new Uniform('cc_matProjInv', Type.MAT4, 1),new Uniform('cc_matViewProj', Type.MAT4, 1),new Uniform('cc_matViewProjInv', Type.MAT4, 1),new Uniform('cc_cameraPos', Type.FLOAT4, 1),new Uniform('cc_screenScale', Type.FLOAT4, 1),new Uniform('cc_exposure', Type.FLOAT4, 1),new Uniform('cc_mainLitDir', Type.FLOAT4, 1),new Uniform('cc_mainLitColor', Type.FLOAT4, 1),new Uniform('cc_ambientSky', Type.FLOAT4, 1),new Uniform('cc_ambientGround', Type.FLOAT4, 1),new Uniform('cc_fogColor', Type.FLOAT4, 1),new Uniform('cc_fogBase', Type.FLOAT4, 1),new Uniform('cc_fogAdd', Type.FLOAT4, 1),], 1)

Static Readonly MAIN_LIT_COLOR_OFFSET

MAIN_LIT_COLOR_OFFSET: number = UBOCamera.MAIN_LIT_DIR_OFFSET + 4

Static Readonly MAIN_LIT_DIR_OFFSET

MAIN_LIT_DIR_OFFSET: number = UBOCamera.EXPOSURE_OFFSET + 4

Static Readonly MAT_PROJ_INV_OFFSET

MAT_PROJ_INV_OFFSET: number = UBOCamera.MAT_PROJ_OFFSET + 16

Static Readonly MAT_PROJ_OFFSET

MAT_PROJ_OFFSET: number = UBOCamera.MAT_VIEW_INV_OFFSET + 16

Static Readonly MAT_VIEW_INV_OFFSET

MAT_VIEW_INV_OFFSET: number = UBOCamera.MAT_VIEW_OFFSET + 16

Static Readonly MAT_VIEW_OFFSET

MAT_VIEW_OFFSET: 0 = 0

Static Readonly MAT_VIEW_PROJ_INV_OFFSET

MAT_VIEW_PROJ_INV_OFFSET: number = UBOCamera.MAT_VIEW_PROJ_OFFSET + 16

Static Readonly MAT_VIEW_PROJ_OFFSET

MAT_VIEW_PROJ_OFFSET: number = UBOCamera.MAT_PROJ_INV_OFFSET + 16

Static Readonly NAME

NAME: "CCCamera" = "CCCamera"

Static Readonly SCREEN_SCALE_OFFSET

SCREEN_SCALE_OFFSET: number = UBOCamera.CAMERA_POS_OFFSET + 4

Static Readonly SIZE

SIZE: number = UBOCamera.COUNT * 4

Generated using TypeDoc