CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 02:51:57 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/"1137894c129a808b8915ae3d0f6a9653"
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=RCZnpfe0U24k6kOxpzbfa0pEkUZWC5fo1wGVBBhE%2B%2Fdd7V%2F2gCPbejbvc2%2BWYZ89Iz%2BagP4SRQe02qJX35IHgh9NKhuShDKSUagQoqbCowrQUVba1SIiX%2FMRaEFDUVGqmXSDULPFBJFBZA3Hixi%2FUIxaMefciSTg5F5MaZOzk7Npp5Lny5iYA37fDvKEQtko8CLtc7HTU5dP%2F7uOui0LY6dAYEGvjQM0L%2BKv9yIHBFh%2Bgo3ihJe3rI%2FsAffHGjtvcKThUW5c8ff51xPO3W4%2B4A%3D%3D--bfFMTDyMDQ6E7LP3--3%2F8lqx0Uj8NkcGvPHW%2BDkQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1966797877.1753411917; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:51:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:51:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AEF0:2D5B28:DF647:14F4EB:6882F14D
Gfx3MeshRenderer · swgpu/SWGPU Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1
Gfx3MeshRenderer
jay19240 edited this page Mar 13, 2025
·
3 revisions
Singleton mesh renderer.
- inherit from: Gfx3RendererAbstract
- new Gfx3MeshRenderer(): Gfx3MeshRenderer
-
drawDecal(group: number, sx: number, sy: number, sw: number, sh: number, position: vec3, orientationX: vec3, orientationY: vec3, orientationZ: vec3, size: vec3, opacity: number): void
- group: The group target (mesh is identified by its 'g' id component).
- sx: The x-coordinate of the decal sprite in the atlas texture.
- sy: The y-coordinate of the decal sprite in the atlas texture.
- sw: The width of the decal sprite in the atlas texture.
- sh: The height of the decal sprite in the atlas texture.
- position: The position of projector (center).
- orientationX: The x-axis orientation of the projector.
- orientationY: The y-axis orientation of the projector.
- orientationZ: The z-axis orientation of the projector.
- size: The size (width, height, depth) of the projector.
- opacity: The opacity or transparency of the decal.
-
drawDirLight(direction: vec3, diffuse: vec3, specular: vec3, intensity: number, meshId: number): void
- direction: The direction.
- diffuse: The diffuse color.
- specular: The specular color.
- intensity: The strength or brightness.
- meshId: The mesh id targeted (0 affect all mesh).
-
drawMesh(mesh: Gfx3Mesh, matrix): void
- mesh: The mesh.
- matrix: The transformation matrix.
-
drawPointLight(position: vec3, diffuse: vec3, specular: vec3, intensity: number, meshId: number, constant: number, linear: number, exp: number): void
- position: The position.
- diffuse: The diffuse color.
- specular: The specular color.
- intensity: The brightness or strength.
- meshId: The mesh id targeted (0 affect all mesh).
- constant: The constant attenuation factor of the point light.
- linear: The linear attenuation factor of the point light.
- exp: The exponent of the attenuation equation for the point light.
-
drawSpotLight(position: vec3, direction: vec3, cutoff: number, diffuse: vec3, specular: vec3, intensity: number, meshId: number, constant: number, linear: number, exp: number): void
- position: The position.
- direction: The direction.
- cutoff: The aperture angle of light.
- diffuse: The diffuse color.
- specular: The specular color.
- intensity: The brightness or strength.
- meshId: The mesh id targeted (0 affect all mesh).
- constant: The constant attenuation factor of the point light.
- linear: The linear attenuation factor of the point light.
- exp: The exponent of the attenuation equation for the point light.
-
enableFog(enabled: boolean, from: vec3, color: vec3, near: number, far: number): void
- enabled: Indicating whether the fog is enabled or not.
- from: The fog origin point.
- color: The fog color.
- near: The distance from the camera at which the fog starts to appear.
- far: The distance from the camera at which the fog effect should start to fade out.
-
enableShadow(enabled: boolean): void
- enabled: Indicating whether the shadow should be enabled or disabled.
-
getCustomParam(name: string): number
- name: The param name.
-
render(ts: number, destinationTexture): void
- ts
- destinationTexture
-
setAmbientColor(ambientColor: vec3): void
- ambientColor: The ambient color.
-
setCustomParam(name: string, value: number): void
- name: The param name.
- value: The param value.
-
setCustomTextures(textures): void
- textures: The textures list.
-
setDecalAtlas(decalAtlas: Gfx3Texture): void
- decalAtlas: The decal texture atlas.
Clone this wiki locally
You can’t perform that action at this time.