RenderingModule

modules/app/ RenderingModule

.new RenderingModule(paramsopt)

Source:
Parameters:
Name Type Attributes Description
params Object <optional>
Example

Creating a rendering module and passing it to App's modules

new App([
  new ElementModule(),
  new SceneModule(),
  new DefineModule('camera', new WHS.PerspectiveCamera({
    position: new THREE.Vector3(0, 6, 18),
    far: 10000
  })),
  new RenderingModule({
    bgColor: 0x162129,

    renderer: {
      antialias: true,
      shadowmap: {
        type: THREE.PCFSoftShadowMap
      }
    }
  }, {shadow: true})
]);

Methods

(static) .setSize(width, height)

Update render target width and height.

Source:
Parameters:
Name Type Description
width Number
height Number