File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5858 renderer = new THREE . WebGLRenderer ( { antialias : true } ) ;
5959 renderer . setPixelRatio ( window . devicePixelRatio ) ;
6060 renderer . setSize ( window . innerWidth , window . innerHeight ) ;
61+ renderer . outputEncoding = THREE . sRGBEncoding ;
6162 container . appendChild ( renderer . domElement ) ;
6263
6364 //
169170 if ( guiData . drawFillShapes && fillColor !== undefined && fillColor !== 'none' ) {
170171
171172 const material = new THREE . MeshBasicMaterial ( {
172- color : new THREE . Color ( ) . setStyle ( fillColor ) ,
173+ color : new THREE . Color ( ) . setStyle ( fillColor ) . convertSRGBToLinear ( ) ,
173174 opacity : path . userData . style . fillOpacity ,
174175 transparent : true ,
175176 side : THREE . DoubleSide ,
197198 if ( guiData . drawStrokes && strokeColor !== undefined && strokeColor !== 'none' ) {
198199
199200 const material = new THREE . MeshBasicMaterial ( {
200- color : new THREE . Color ( ) . setStyle ( strokeColor ) ,
201+ color : new THREE . Color ( ) . setStyle ( strokeColor ) . convertSRGBToLinear ( ) ,
201202 opacity : path . userData . style . strokeOpacity ,
202203 transparent : true ,
203204 side : THREE . DoubleSide ,
You can’t perform that action at this time.
0 commit comments