Skip to content

Commit

Permalink
Examples load envLighting without mipmaps (#5300)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed May 3, 2023
1 parent 121278d commit 2ed765a
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion examples/src/examples/animation/blend-trees-1d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BlendTrees1DExample {
'model': new pc.Asset('model', 'container', { url: '/static/assets/models/bitmoji.glb' }),
'idleAnim': new pc.Asset('idleAnim', 'container', { url: '/static/assets/animations/bitmoji/idle.glb' }),
'danceAnim': new pc.Asset('danceAnim', 'container', { url: '/static/assets/animations/bitmoji/win-dance.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' })
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class BlendTrees2DCartesianExample {
'walkAnim': new pc.Asset('idleAnim', 'container', { url: '/static/assets/animations/bitmoji/walk.glb' }),
'eagerAnim': new pc.Asset('idleAnim', 'container', { url: '/static/assets/animations/bitmoji/idle-eager.glb' }),
'danceAnim': new pc.Asset('danceAnim', 'container', { url: '/static/assets/animations/bitmoji/win-dance.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' })
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class BlendTrees2DDirectionalExample {
'walkAnim': new pc.Asset('idleAnim', 'container', { url: '/static/assets/animations/bitmoji/walk.glb' }),
'jogAnim': new pc.Asset('idleAnim', 'container', { url: '/static/assets/animations/bitmoji/run.glb' }),
'danceAnim': new pc.Asset('danceAnim', 'container', { url: '/static/assets/animations/bitmoji/win-dance.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/animation/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EventsExample {
const assets = {
'model': new pc.Asset('model', 'container', { url: '/static/assets/models/bitmoji.glb' }),
'walkAnim': new pc.Asset('walkAnim', 'container', { url: '/static/assets/animations/bitmoji/walk.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' })
};
const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/animation/layer-masks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LayerMasksExample {
'idleEagerAnim': new pc.Asset('idleEagerAnim', 'container', { url: '/static/assets/animations/bitmoji/idle-eager.glb' }),
'walkAnim': new pc.Asset('walkAnim', 'container', { url: '/static/assets/animations/bitmoji/walk.glb' }),
'danceAnim': new pc.Asset('danceAnim', 'container', { url: '/static/assets/animations/bitmoji/win-dance.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/animation/locomotion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LocomotionExample {
'walkAnim': new pc.Asset('walkAnim', 'container', { url: '/static/assets/animations/bitmoji/walk.glb' }),
'jogAnim': new pc.Asset('jogAnim', 'container', { url: '/static/assets/animations/bitmoji/run.glb' }),
'jumpAnim': new pc.Asset('jumpAnim', 'container', { url: '/static/assets/animations/bitmoji/jump-flip.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/area-lights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AreaLightsExample {
'gloss': new pc.Asset('gloss', 'texture', { url: '/static/assets/textures/seaside-rocks01-gloss.jpg' }),
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' }),
'luts': new pc.Asset('luts', 'json', { url: '/static/assets/json/area-light-luts.json' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/area-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AreaPickerExample {

const assets = {
'bloom': new pc.Asset('bloom', 'script', { url: '/static/scripts/posteffects/posteffect-bloom.js' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/asset-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AssetViewerExample {

const assets = {
orbitCamera: new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
dish: new pc.Asset('dish', 'container', { url: '/static/assets/models/IridescentDishWithOlives.glb' }),
mosquito: new pc.Asset('mosquito', 'container', { url: '/static/assets/models/MosquitoInAmber.glb' }),
sheen: new pc.Asset('sheen', 'container', { url: '/static/assets/models/SheenChair.glb' }),
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/ground-fog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class GroundFogExample {
const assets = {
'script': new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' }),
'terrain': new pc.Asset('terrain', 'container', { url: '/static/assets/models/terrain.glb' }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'texture': new pc.Asset('color', 'texture', { url: '/static/assets/textures/clouds.jpg' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/hardware-instancing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class HardwareInstancingExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/light-physical-units.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class LightPhysicalUnitsExample {

const assets = {
orbitCamera: new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
lights: new pc.Asset('lights', 'container', { url: '/static/assets/models/Lights.glb' }),
sheen: new pc.Asset('sheen', 'container', { url: '/static/assets/models/SheenChair.glb' }),
color: new pc.Asset('color', 'texture', { url: '/static/assets/textures/seaside-rocks01-color.jpg' }),
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/lights-baked-a-o.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class LightsBakedAOExample {
example(canvas: HTMLCanvasElement, deviceType: string, data: any): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'house': new pc.Asset('house', 'container', { url: '/static/assets/models/house.glb' }),
'script': new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' })
};
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/lines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class LinesExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/material-clear-coat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MaterialClearCoatExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'normal': new pc.Asset('normal', 'texture', { url: '/static/assets/textures/flakes5n.png' }),
'diffuse': new pc.Asset('diffuse', 'texture', { url: '/static/assets/textures/flakes5c.png' }),
'other': new pc.Asset('other', 'texture', { url: '/static/assets/textures/flakes5o.png' })
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/material-physical.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MaterialPhysicalExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'font': new pc.Asset('font', 'font', { url: '/static/assets/fonts/arial.json' })
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MaterialTranslucentSpecularExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'font': new pc.Asset('font', 'font', { url: '/static/assets/fonts/arial.json' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/mesh-deformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MeshDeformationExample {

const assets = {
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/mesh-morph-many.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MeshMorphManyExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/multi-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MultiViewExample {
function demo() {
const assets = {
'script': new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'board': new pc.Asset('statue', 'container', { url: '/static/assets/models/chess-board.glb' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PortalExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'portal': new pc.Asset('portal', 'container', { url: '/static/assets/models/portal.glb' }),
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' }),
'bitmoji': new pc.Asset('bitmoji', 'container', { url: '/static/assets/models/bitmoji.glb' })
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/post-effects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class PostEffectsExample {
'vignette': new pc.Asset('vignette', 'script', { url: '/static/scripts/posteffects/posteffect-vignette.js' }),
'ssao': new pc.Asset('ssao', 'script', { url: '/static/scripts/posteffects/posteffect-ssao.js' }),
'font': new pc.Asset('font', 'font', { url: '/static/assets/fonts/arial.json' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/reflection-cubemap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ReflectionCubemapExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'script': new pc.Asset('script', 'script', { url: '/static/scripts/utils/cubemap-renderer.js' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/render-asset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RenderAssetExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' }),
'cube': new pc.Asset('cube', 'container', { url: '/static/assets/models/playcanvas-cube.glb' })
};
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/render-to-texture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RenderToTextureExample {
// - camera - this camera renders into main framebuffer, objects from World, Excluded and also Skybox layers

const assets = {
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'script': new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/shader-compile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ShaderCompileExample {
'normal': new pc.Asset('normal', 'texture', { url: '/static/assets/textures/seaside-rocks01-normal.jpg' }),
'gloss': new pc.Asset('gloss', 'texture', { url: '/static/assets/textures/seaside-rocks01-gloss.jpg' }),
'luts': new pc.Asset('luts', 'json', { url: '/static/assets/json/area-light-luts.json' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
};

const assetListLoader = new pc.AssetListLoader(Object.values(assets), app.assets);
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/graphics/shadow-cascades.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ShadowCascadesExample {
const assets = {
'script': new pc.Asset('script', 'script', { url: '/static/scripts/camera/orbit-camera.js' }),
'terrain': new pc.Asset('terrain', 'container', { url: '/static/assets/models/terrain.glb' }),
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP })
helipad: new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false })
};

const gfxOptions = {
Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/input/gamepad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GamepadExample {
// Create the application and start the update loop

const assets = {
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' })
};

Expand Down
2 changes: 1 addition & 1 deletion examples/src/examples/input/keyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class KeyboardExample {
example(canvas: HTMLCanvasElement, deviceType: string): void {

const assets = {
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP }),
'helipad': new pc.Asset('helipad-env-atlas', 'texture', { url: '/static/assets/cubemaps/helipad-env-atlas.png' }, { type: pc.TEXTURETYPE_RGBP, mipmaps: false }),
'statue': new pc.Asset('statue', 'container', { url: '/static/assets/models/statue.glb' })
};

Expand Down

0 comments on commit 2ed765a

Please sign in to comment.