Skip to content

Commit

Permalink
Merge d985b10 into 5d7736f
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Jan 29, 2020
2 parents 5d7736f + d985b10 commit 42b7ab8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/experimental/src/gltf/gltf-material-parser.js
@@ -1,4 +1,4 @@
import {Texture2D, log} from '@luma.gl/webgl';
import {Texture2D, hasFeature, FEATURES, log} from '@luma.gl/webgl';

export default class GLTFMaterialParser {
constructor(
Expand All @@ -8,13 +8,15 @@ export default class GLTFMaterialParser {
this.gl = gl;

this.defines = {
USE_TEX_LOD: 1,

// TODO: Use EXT_sRGB if available (Standard in WebGL 2.0)
MANUAL_SRGB: 1,
SRGB_FAST_APPROXIMATION: 1
};

if (hasFeature(gl, FEATURES.GLSL_TEXTURE_LOD)) {
this.defines.USE_TEX_LOD = 1;
}

this.uniforms = {
// TODO: find better values?
u_Camera: [0, 0, 0], // Model should override
Expand Down

0 comments on commit 42b7ab8

Please sign in to comment.