CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:17:37 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"21400f3f6a6c8d446496a290539ea1ff"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=oXL%2BOyUQ52TqrIdiJRhMy7AXu0By1UXoIdFfH3hltb%2BsUD24RdlnBCbu36FUJIqvivk0eZ48KXoioWGP5sbjF%2FE6d7I8MpbTJLQNQvKAV3DTHc8NnhvYG2P3MjENC9wjOZD7XmV7DJHa34f8RgG3dpSMIjN0t4aNL23sYaN1cFGVq34KWqFMA601LxKE%2FQ%2Fe47ek3R4IUXKE9tySEbwSDlPz0qILP26lUqO028nd41Tk5qiK2EeHtIlEOsL4en0ENgV3SLW7X9ZZiDZNrHe3cw%3D%3D--ovhVBTLuIWWVrcrW--lQhS9a8syAtw2HLMDgaSBQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.232283502.1753615057; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:17:37 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:17:37 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CA04:29054:3F2D1B:542540:68860AD1
Gfx3Material · swgpu/SWGPU Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1
Gfx3Material
jay19240 edited this page Jul 18, 2025
·
6 revisions
The surface material. It emit 'E_FINISHED' (on texture animation end)
-
new Gfx3Material(options: MATOptions): Gfx3Material
- options: The options to configure the material.
- delete(): void
-
enableDecal(enabled: boolean): void
- enabled: Indicating whether decals should be enabled or disabled.
-
enableShadow(enabled: boolean): void
- enabled: Indicating whether the shadow should be enabled or disabled.
-
getCustomParam(name: string): number
- name: The param name.
- getCustomTexture0(): Gfx3Texture
- getCustomTexture1(): Gfx3Texture
- getDiffuseMap(): Gfx3Texture
- getDisplacementMap(): Gfx3Texture
- getDissolveTexture(): Gfx3Texture
- getEmissiveMap(): Gfx3Texture
- getEnvMap(): Gfx3Texture
- getGroup02(): Gfx3StaticGroup
- getGroup03(): Gfx3StaticGroup
- getNormalMap(): Gfx3Texture
- getSecondaryTexture(): Gfx3Texture
- getSpecularMap(): Gfx3Texture
- getTexture(): Gfx3Texture
- getToonMap(): Gfx3Texture
-
playAnimation(textureTarget: TextureTarget, looped: boolean, preventSameAnimation: boolean): void
- textureTarget: The name of the animated texture.
- looped: Determines whether the animation should loop or not.
- preventSameAnimation: Determines whether the same animation should be prevented from playing again.
-
setAmbient(r: number, g: number, b: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
-
setBlend(r: number, g: number, b: number, a: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
- a: The alpha component.
-
setCustomParam(name: string, value: number): void
- name: The param name.
- value: The param value.
-
setCustomTextures(textures): void
- textures: The textures list.
-
setDiffuse(r: number, g: number, b: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
-
setDiffuseMap(diffuseMap: Gfx3Texture): void
- diffuseMap: The diffuse texture map.
-
setDisplacementMap(displacementMap: Gfx3Texture, angle: number, rate: number, factor: number): void
- displacementMap: The displacement map texture.
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
- factor: The strength or intensity of the displacement effect.
-
setDisplacementMapScale(x: number, y: number): void
- x: The horizontal scale.
- y: The vertical scale.
-
setDisplacementMapScroll(angle: number, rate: number): void
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
-
setDissolveAmount(amount: number): void
- amount: The dissolve amount.
-
setDissolveGlow(r: number, g: number, b: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
-
setDissolveGlowFallOff(falloff: number): void
- falloff: The dissolve glow falloff.
-
setDissolveGlowRange(glowRange: number): void
- glowRange: The dissolve glow range.
-
setDissolveTexture(dissolveTexture: Gfx3Texture, glowRange: number, glowFalloff: number, amount: number): void
- dissolveTexture: The dissolve texture.
- glowRange
- glowFalloff
- amount
-
setDissolveTextureScale(x: number, y: number): void
- x: The horizontal scale.
- y: The vertical scale.
-
setDissolveTextureScroll(angle: number, rate: number): void
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
-
setDistanceAlphaBlend(distanceAlphaBlend: number): void
- distanceAlphaBlend: Distance alpha blend factor.
-
setEmissive(r: number, g: number, b: number, a: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
- a: The emissive factor.
-
setEmissiveFactor(emissiveFactor: number): void
- emissiveFactor: The factor of emission color (0-1)
-
setEmissiveMap(emissiveMap: Gfx3Texture): void
- emissiveMap: The emissive texture map.
-
setEnvMap(envMap: Gfx3Texture): void
- envMap: The env texture map.
-
setFacingAlphaBlend(facingAlphaBlend: number): void
- facingAlphaBlend: Facing alpha blend factor.
-
setFlipbooks(flipbooks: MATFlipbook[]): void
- flipbooks: The flipbook list.
-
setJamFrames(frames: number[]): void
- frames: The flatten frames data.
-
setJamInfos(frameIndexA: number, frameIndexB: number, isAnimated: boolean, interpolated: boolean, frameTimeStamp: number, frameDuration: number, numVertices: number): void
- frameIndexA: The current frame index.
- frameIndexB: The next frame index.
- isAnimated: The animated flag.
- interpolated: A flag to enable/disable interpolation between frames.
- frameTimeStamp: Timestamp of the last frame change.
- frameDuration: The frame duration.
- numVertices: The number of vertices in a frame.
-
setLightning(lightning: boolean): void
- lightning: Indicates if light is applied or not to the material.
-
setNormalIntensity(normalIntensity: number): void
- normalIntensity: The normal intensity.
-
setNormalMap(normalMap: Gfx3Texture): void
- normalMap: The normal texture map.
-
setSecondaryTexture(texture: Gfx3Texture, angle: number, rate: number, blendMode): void
- texture: The texture.
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
- blendMode: The blend mode.
-
setSecondaryTextureScale(x: number, y: number): void
- x: The horizontal scale.
- y: The vertical scale.
-
setSecondaryTextureScroll(angle: number, rate: number): void
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
-
setShininess(shininess: number): void
- shininess: The shininess/specularity value (0-1)
-
setSpecular(r: number, g: number, b: number): void
- r: The red component.
- g: The green component.
- b: The blue component.
-
setSpecularMap(specularMap: Gfx3Texture): void
- specularMap: The specular texture map.
-
setSpecularity(specularity: number): void
- specularity: The level of specularity or shininess.
-
setTexture(texture: Gfx3Texture, angle: number, rate: number): void
- texture: The texture.
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
-
setTextureScale(x: number, y: number): void
- x: The horizontal scale.
- y: The vertical scale.
-
setTextureScroll(angle: number, rate: number): void
- angle: The angle at which the texture will be scrolled (in radians).
- rate: The scrolling rate of the texture.
-
setToonBlending(toonBlending: number): void
- toonBlending: Enable or disable the blending between texture and toon texture.
-
setToonLightDirection(direction: vec3): void
- direction: The toon light direction.
-
setToonMap(toonMap: Gfx3Texture): void
- toonMap: The toon texture map.
-
stopAnimation(textureTarget: TextureTarget): void
- textureTarget: The name of the animated texture.
-
update(ts: number): void
- ts
-
static createFromFile(path: string, textureDir: string): Promise
- path: The file path.
- textureDir: The textures directory.
Clone this wiki locally
You can’t perform that action at this time.