Skip to content

Instantly share code, notes, and snippets.

@SOKHUONG
Last active October 11, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SOKHUONG/fac9e7d40f713b7dbdcb6a66b197f8c6 to your computer and use it in GitHub Desktop.
Save SOKHUONG/fac9e7d40f713b7dbdcb6a66b197f8c6 to your computer and use it in GitHub Desktop.
test
// WebGL Renderer
{
this.renderer = new WebGLRenderer({antialias: true});
this.renderer.name = "Renderer";
// this.renderer.setClearColor(0x888888);
this.renderer.setPixelRatio(window.devicePixelRatio);
this.renderer.setSize(this.sceneSpace.clientWidth, this.sceneSpace.clientHeight);
this.renderer.outputEncoding = sRGBEncoding;
this.renderer.shadowMap.enabled = true;
this.renderer.shadowMap.type = PCFSoftShadowMap;
this.sceneSpace.appendChild(this.renderer.domElement);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment