File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 8
8
NoColorSpace ,
9
9
HalfFloatType ,
10
10
DataUtils ,
11
- WebGLCoordinateSystem
11
+ WebGLCoordinateSystem ,
12
+ FloatType
12
13
} from 'three' ;
13
14
14
15
/**
@@ -178,7 +179,11 @@ class LightProbeGenerator {
178
179
179
180
if ( renderer . isWebGLRenderer ) {
180
181
181
- if ( dataType === HalfFloatType ) {
182
+ if ( dataType === FloatType ) {
183
+
184
+ data = new Float32Array ( imageWidth * imageWidth * 4 ) ;
185
+
186
+ } else if ( dataType === HalfFloatType ) {
182
187
183
188
data = new Uint16Array ( imageWidth * imageWidth * 4 ) ;
184
189
@@ -210,7 +215,13 @@ class LightProbeGenerator {
210
215
211
216
let r , g , b ;
212
217
213
- if ( dataType === HalfFloatType ) {
218
+ if ( dataType === FloatType ) {
219
+
220
+ r = data [ i ] ;
221
+ g = data [ i + 1 ] ;
222
+ b = data [ i + 2 ] ;
223
+
224
+ } else if ( dataType === HalfFloatType ) {
214
225
215
226
r = DataUtils . fromHalfFloat ( data [ i ] ) ;
216
227
g = DataUtils . fromHalfFloat ( data [ i + 1 ] ) ;
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ const exceptionList = [
113
113
'webgl_volume_instancing' ,
114
114
'webgl_buffergeometry' ,
115
115
'webgl_buffergeometry_attributes_integer' ,
116
+ 'webgl_buffergeometry_attributes_none' ,
117
+ 'webgl_buffergeometry_custom_attributes_particles' ,
116
118
'webgl_batch_lod_bvh' ,
117
119
118
120
// Intentional z-fighting in this demo makes it non-deterministic
You can’t perform that action at this time.
0 commit comments