这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/lib/animations/misc_animation_keys.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class _State extends State<MiscAnimationKeys> {
});
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/animations/webgl_animation_keyframes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class _State extends State<WebglAnimationKeyframes> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
5 changes: 4 additions & 1 deletion examples/lib/animations/webgl_animation_multiple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class _State extends State<WebglAnimationMultiple> {
});
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class _State extends State<WebglAnimationSkinningAdditiveBlending> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true,
outputEncoding: three.sRGBEncoding,
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _State extends State<WebglAnimationSkinningBlending> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/animations/webgl_animation_skinning_morph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class _State extends State<WebglAnimationSkinningMorph> {

onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
3 changes: 2 additions & 1 deletion examples/lib/animations/webgl_animation_walk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class _State extends State<WebglAnimationWalk> {
settings: three.Settings(
toneMapping: three.ACESFilmicToneMapping,
toneMappingExposure: 0.5,
enableShadowMap: true
enableShadowMap: true,
useOpenGL: useOpenGL
)
);
super.initState();
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/audio/orientation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<AudioOrientation> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/audio/sandbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class _State extends State<AudioSandbox> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
1 change: 1 addition & 0 deletions examples/lib/audio/timing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class _State extends State<AudioTiming> {
setup: setup,
settings: three.Settings(
enableShadowMap: true,
useOpenGL: useOpenGL
)
);
super.initState();
Expand Down
1 change: 1 addition & 0 deletions examples/lib/camera/webgl_camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class _MyAppState extends State<WebglCamera> {
setup: setup,
postProcessor: postProcessor,
settings: three.Settings(
useOpenGL: useOpenGL,
renderOptions: {
"minFilter": three.LinearFilter,
"magFilter": three.LinearFilter,
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/camera/webgl_camera_array.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _MyAppState extends State<WebglCameraArray> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
1 change: 1 addition & 0 deletions examples/lib/clipping/webgl_clipping.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class _State extends State<WebglClipping> {
setup: setup,
settings: three.Settings(
localClippingEnabled: true,
useOpenGL: true
)
);
super.initState();
Expand Down
1 change: 1 addition & 0 deletions examples/lib/clipping/webgl_clipping_advanced.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class _State extends State<WebglClippingAdvanced> {
settings: three.Settings(
clippingPlanes: [],
localClippingEnabled: true,
useOpenGL: true
)
);
super.initState();
Expand Down
4 changes: 2 additions & 2 deletions examples/lib/clipping/webgl_clipping_intersection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class _State extends State<WebglClippingIntersection> {
});
});
threeJs = three.ThreeJS(

onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
localClippingEnabled: true
localClippingEnabled: true,
useOpenGL: true
)
);
super.initState();
Expand Down
1 change: 1 addition & 0 deletions examples/lib/clipping/webgl_clipping_stencil.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class _State extends State<WebglClippingStencil> {
localClippingEnabled: true,
clearColor: 0x263238,
clearAlpha: 1.0,
useOpenGL: true
)
);
super.initState();
Expand Down
5 changes: 4 additions & 1 deletion examples/lib/controls/misc_controls_arcball.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class _MyAppState extends State<MiscControlsArcball> {
});
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class _MyAppState extends State<MiscControlsDeviceOrientation> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true,
renderOptions: {
"minFilter": three.LinearFilter,
"magFilter": three.LinearFilter,
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/controls/misc_controls_fly.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class _State extends State<MiscControlsFly> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
1 change: 1 addition & 0 deletions examples/lib/controls/misc_controls_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class _MyAppState extends State<MiscControlsMap> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true,
renderOptions: {
"minFilter": three.LinearFilter,
"magFilter": three.LinearFilter,
Expand Down
1 change: 1 addition & 0 deletions examples/lib/controls/misc_controls_orbit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class _MyAppState extends State<MiscControlsOrbit> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true,
renderOptions: {
"minFilter": three.LinearFilter,
"magFilter": three.LinearFilter,
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/controls/misc_controls_pointerlock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class _State extends State<MiscControlsPointerlock> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
1 change: 1 addition & 0 deletions examples/lib/controls/misc_controls_trackball.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class _MyAppState extends State<MiscControlsTrackball> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: true,
renderOptions: {
"minFilter": three.LinearFilter,
"magFilter": three.LinearFilter,
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/controls/misc_controls_transform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class _MyAppState extends State<MiscControlsTransform> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
),
windowResizeUpdate: (newSize){
final aspect = newSize.width / newSize.height;

Expand Down
3 changes: 3 additions & 0 deletions examples/lib/exporters/misc_exporter_obj.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<MiscExporterOBJ> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
gui = Gui((){setState(() {});});
super.initState();
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/exporters/misc_exporter_ply.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class _State extends State<MiscExporterPly> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
gui = Gui((){setState(() {});});
super.initState();
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/exporters/misc_exporter_stl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<MiscExporterSTL> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
gui = Gui((){setState(() {});});
super.initState();
Expand Down
1 change: 1 addition & 0 deletions examples/lib/games/flutter_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class _MyAppState extends State<FlutterGame> {
settings: three.Settings(
clearAlpha: 0,
clearColor: 0xffffff,
useOpenGL: useOpenGL
),
);
super.initState();
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/games/games_fps.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class _FPSGamePageState extends State<FPSGame> {
});
});
threeJs = three.ThreeJS(
settings: three.Settings(
useOpenGL: true
),
onSetupComplete: (){
setState(() {});
// Keybindings
Expand Down
5 changes: 4 additions & 1 deletion examples/lib/games/games_fps2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class _FPSGame2PageState extends State<FPSGame2> {
onSetupComplete: (){
setState(() {});
},
setup: setup
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
3 changes: 2 additions & 1 deletion examples/lib/geometry/marching_cubes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class _MarchingState extends State<Marching> {
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
renderOptions: {"format": three.RGBAFormat,"samples": 8}
renderOptions: {"format": three.RGBAFormat,"samples": 8},
useOpenGL: useOpenGL
)
);
super.initState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _State extends State<WebglBuffergeometryCustomAttributesParticles> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_decals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<WebglDecals> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
1 change: 1 addition & 0 deletions examples/lib/geometry/webgl_geometries.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class _State extends State<WebglGeometries> {
setup: setup,
settings: three.Settings(
localClippingEnabled: true,
useOpenGL: true
)
);
super.initState();
Expand Down
6 changes: 4 additions & 2 deletions examples/lib/geometry/webgl_geometry_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ class _MyAppState extends State<WebglGeometryColors> {
});
});
threeJs = three.ThreeJS(

onSetupComplete: (){setState(() {});},
setup: setup
setup: setup,
settings: three.Settings(
useOpenGL: true
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_geometry_convex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<WebglGeometryConvex> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_geometry_dynamic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _State extends State<WebglGeometryDynamic> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_geometry_extrude_shapes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _State extends State<WebglGeometryExtrudeShapes> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_geometry_extrude_splines.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class _State extends State<WebglGeometryExtrudeSplines> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
3 changes: 3 additions & 0 deletions examples/lib/geometry/webgl_geometry_nurbs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class _State extends State<WebglGeometryNurbs> {
threeJs = three.ThreeJS(
onSetupComplete: (){setState(() {});},
setup: setup,
settings: three.Settings(
useOpenGL: useOpenGL
)
);
super.initState();
}
Expand Down
Loading
Loading