16 public Dictionary<Model, Texture2D>
Textures =
new();
39 "A ModelWidget may contains multiple models, please use Models field instead. This field only represents the first model of Models field."
87 [Obsolete(
"A ModelWidget may contains multiple models. TextureOverride only represents the texture of the first model.")]
124 litShader.AmbientLightColor =
new Vector3(0.66f, 0.66f, 0.66f);
125 litShader.DiffuseLightColor1 =
new Vector3(1f, 1f, 1f);
128 litShader.AlphaThreshold = 0f;
142 if (orthographicFrustumSize.
X < 0f) {
143 orthographicFrustumSize.X = orthographicFrustumSize.Y / num;
145 else if (orthographicFrustumSize.
Y < 0f) {
146 orthographicFrustumSize.Y = orthographicFrustumSize.X * num;
148 shader.Transforms.Projection =
160 float num2 = (float)
Time.
RealTime + GetHashCode() % 1000 / 100f;
166 if (texture ==
null) {
169 shader.GetParameter(
"u_texture",
true)?.SetValue(texture);
201 m.Translation += translation;
static readonly BlendState AlphaBlend
static readonly DepthStencilState Default
static void DrawIndexed(PrimitiveType primitiveType, Shader shader, VertexBuffer vertexBuffer, IndexBuffer indexBuffer, int startIndex, int indicesCount)
ReadOnlyList< ModelBone > ChildBones
ReadOnlyList< ModelBone > Bones
ReadOnlyList< ModelMesh > Meshes
ReadOnlyList< ModelMeshPart > MeshParts
VertexBuffer VertexBuffer
static readonly RasterizerState CullNoneScissor
static SamplerState PointClamp
static Matrix CreateScaleTranslation(float sx, float sy, float tx, float ty)
static Matrix CreatePerspectiveFieldOfView(float fieldOfViewY, float aspectRatio, float nearPlane, float farPlane)
static void MultiplyRestricted(ref Matrix m1, ref Matrix m2, out Matrix result)
static readonly Matrix Identity
static Matrix CreateLookAt(Vector3 position, Vector3 target, Vector3 up)
static Matrix CreateFromAxisAngle(Vector3 axis, float angle)
static Matrix CreateOrthographic(float width, float height, float nearPlane, float farPlane)
static Vector3 Normalize(Vector3 v)
static readonly Vector3 Zero
static readonly Vector3 UnitY