65 if (activeBlockValue != 0) {
79 if (activeBlockValue == 0) {
110 if (chunkAtCell !=
null
124 m_drawBlockEnvironmentData.DrawBlockMode =
DrawBlockMode.FirstPerson;
126 m_drawBlockEnvironmentData.InWorldMatrix = matrix2;
128 m_drawBlockEnvironmentData.Temperature =
m_subsystemTerrain.Terrain.GetSeasonalTemperature(x, z)
131 m_drawBlockEnvironmentData.EnvironmentTemperature =
m_componentPlayer.ComponentVitalStats.EnvironmentTemperature;
static readonly DepthStencilState Default
static void DrawIndexed(PrimitiveType primitiveType, Shader shader, VertexBuffer vertexBuffer, IndexBuffer indexBuffer, int startIndex, int indicesCount)
ReadOnlyList< ModelMeshPart > MeshParts
VertexBuffer VertexBuffer
static readonly RasterizerState CullCounterClockwiseScissor
static SamplerState PointClamp
static float Saturate(float x)
static float DegToRad(float degrees)
static double FrameStartTime
void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
绘制方块_用于绘制方块物品形态
SubsystemTerrain m_subsystemTerrain
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
static int[] m_drawOrders
virtual void Draw(Camera camera, int drawOrder)
static LitShader m_shader
virtual void Update(float dt)
Vector3 ItemRotationOrder
PrimitivesRenderer3D m_primitivesRenderer
double m_nextHandLightTime
ComponentPlayer m_componentPlayer
DrawBlockEnvironmentData m_drawBlockEnvironmentData
float m_pokeAnimationTime
ComponentMiner m_componentMiner
static object Get(Type type, string name)
static readonly Vector3 DirectionToLight2
static readonly float LightAmbient
static ? float CalculateSmoothLight(SubsystemTerrain subsystemTerrain, Vector3 p)
static readonly Vector3 DirectionToLight1
static Func< int, int > GetTemperatureAdjustmentAtHeight
static int ExtractContents(int value)
static int ToCell(float x)
static Matrix HmdMatrixInverted
static Matrix GetControllerMatrix(VrController controller)
static bool IsControllerPresent(VrController controller)
ValuesDictionary ValuesDictionary
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)
static readonly Matrix Identity
static Matrix CreateFromYawPitchRoll(float yaw, float pitch, float roll)
static Matrix CreateWorld(Vector3 position, Vector3 forward, Vector3 up)
static Matrix CreateScale(float scale)
static Vector3 Lerp(Vector3 v1, Vector3 v2, float f)
static Vector3 TransformNormal(Vector3 v, Matrix m)
static readonly Vector3 Zero
static readonly Vector4 One