C# Класс VoxelTerrain.VoxelMeshSettings

Contains variables used in voxel terrain shader program.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AmbientRayWidth float
AmbientSamplesCount int
BumpPower System.Vector4
ColorizationTexture ShaderResourceView
DetailTexture TexturePack
DiffuseIntensity System.Vector3
DiffuseLight1 System.Vector3
DiffuseLight2 System.Vector3
DiffuseLight3 System.Vector3
DisplacementPower System.Vector3
FogSettings System.Vector2
FogTexture ShaderResourceView
LevelOfDetail int
SpecularIntensity System.Vector3
SpecularRange System.Vector3
TessellationFactor System.Vector4
Texture1 TexturePack
Texture2 TexturePack
Texture3 TexturePack
TextureCoordinates System.Vector4

Открытые методы

Метод Описание
VoxelMeshSettings ( Device graphicsDevice ) : System

Описание методов

VoxelMeshSettings() публичный Метод

public VoxelMeshSettings ( Device graphicsDevice ) : System
graphicsDevice Device
Результат System

Описание свойств

AmbientRayWidth публичное свойство

Defines ray length as a percentage of terrain size. Samples used in ambient occlusion algorithm are placed in equal distances on that ray.
public float AmbientRayWidth
Результат float

AmbientSamplesCount публичное свойство

Number of samples used in ambient occlusion algorithm. More samples equals better quality.
public int AmbientSamplesCount
Результат int

BumpPower публичное свойство

Contains settings of bump power used in a shader. X = first texture pack bump power Y = second texture pack bump power Z = third texture pack bump power W = detail texture pack bump power
public Vector4,System BumpPower
Результат System.Vector4

ColorizationTexture публичное свойство

Texture which is used to slightly colorize terrain to make it more varied.
public ShaderResourceView ColorizationTexture
Результат ShaderResourceView

DetailTexture публичное свойство

Detail texture pack used in terrain shader.
public TexturePack,VoxelTerrain DetailTexture
Результат TexturePack

DiffuseIntensity публичное свойство

Defines intensity of each light used in a scene. X = first light Y = second light Z = third light
public Vector3,System DiffuseIntensity
Результат System.Vector3

DiffuseLight1 публичное свойство

Direction of first light used in a scene.
public Vector3,System DiffuseLight1
Результат System.Vector3

DiffuseLight2 публичное свойство

Direction of second light used in a scene.
public Vector3,System DiffuseLight2
Результат System.Vector3

DiffuseLight3 публичное свойство

Direction of third light used in a scene.
public Vector3,System DiffuseLight3
Результат System.Vector3

DisplacementPower публичное свойство

Defines displacement power for each texture pack. X = first texture pack displacement power Y = second texture pack displacement power Z = third texture pack displacement power
public Vector3,System DisplacementPower
Результат System.Vector3

FogSettings публичное свойство

Contains linear fog settings. X = minimum fog distance Y = maximum fog distance
public Vector2,System FogSettings
Результат System.Vector2

FogTexture публичное свойство

Texture with rendered fog. It needs to be updated every frame.
public ShaderResourceView FogTexture
Результат ShaderResourceView

LevelOfDetail публичное свойство

This variable indicates terrain quality. Higher value equals lower quality of a terrain.
public int LevelOfDetail
Результат int

SpecularIntensity публичное свойство

Defines specular intensity of each light used in a scene. X = first light Y = second light Z = third light
public Vector3,System SpecularIntensity
Результат System.Vector3

SpecularRange публичное свойство

Defines specular range of each light used in a scene. X = first light Y = second light Z = third light
public Vector3,System SpecularRange
Результат System.Vector3

TessellationFactor публичное свойство

Vector with geometry tessellation settings. X = minimum tessellation factor Y = maximum tessellation factor Z = minimum tessellation distance W = maximum tessellation distance
public Vector4,System TessellationFactor
Результат System.Vector4

Texture1 публичное свойство

First texture pack used in terrain shader.
public TexturePack,VoxelTerrain Texture1
Результат TexturePack

Texture2 публичное свойство

Second texture pack used in terrain shader.
public TexturePack,VoxelTerrain Texture2
Результат TexturePack

Texture3 публичное свойство

Third texture pack used in terrain shader.
public TexturePack,VoxelTerrain Texture3
Результат TexturePack

TextureCoordinates публичное свойство

Defines density of each texture pack's coordinates. X = first texture pack texture coordinates Y = second texture pack texture coordinates Z = third texture pack texture coordinates W = detail texture pack texture coordinates
public Vector4,System TextureCoordinates
Результат System.Vector4