2018-04-09 09:35:04 +02:00
|
|
|
/**
|
|
|
|
* R3.API.Renderer
|
|
|
|
* @constructor
|
2019-07-24 14:45:42 +02:00
|
|
|
* @param apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
*/
|
2019-07-24 08:08:02 +02:00
|
|
|
R3.API.Renderer = function(
|
2019-07-24 14:45:42 +02:00
|
|
|
apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
) {
|
2019-10-15 22:21:34 +02:00
|
|
|
__DEFINE_API_COMPONENT__
|
2018-04-09 09:35:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
R3.API.Renderer.prototype = Object.create(R3.API.Component.prototype);
|
|
|
|
R3.API.Renderer.prototype.constructor = R3.API.Renderer;
|
|
|
|
|
|
|
|
R3.API.Renderer.MODE_CANVAS = 0x1;
|
|
|
|
R3.API.Renderer.MODE_TARGET = 0x2;
|
|
|
|
R3.API.Renderer.MODE_CANVAS_AND_TARGET = 0x3;
|
|
|
|
|
|
|
|
R3.API.Renderer.SHADOW_MAP_TYPE_BASIC = 0;
|
|
|
|
R3.API.Renderer.SHADOW_MAP_TYPE_PCF = 1;
|
|
|
|
R3.API.Renderer.SHADOW_MAP_TYPE_PCF_SOFT = 2;
|
|
|
|
|
|
|
|
R3.API.Renderer.TONE_MAPPING_LINEAR = 1;
|
|
|
|
R3.API.Renderer.TONE_MAPPING_REINHARD = 2;
|
|
|
|
R3.API.Renderer.TONE_MAPPING_UNCHARTED_2 = 3;
|
|
|
|
R3.API.Renderer.TONE_MAPPING_CINEON = 4;
|