Skip to content

Commit cd79a50

Browse files
committed
added new examples and sped up some of the renderings
1 parent c0c7f68 commit cd79a50

File tree

71 files changed

+70998
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+70998
-327
lines changed

examples/assets/models/obj/cerberus/Cerberus.obj

Lines changed: 70271 additions & 0 deletions
Large diffs are not rendered by default.
810 KB
Loading
722 KB
Loading
1.09 MB
Loading
1.47 MB
Loading
907 KB
Loading
36.5 KB
Loading

examples/lib/animations/webgl_animation_multiple.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class _State extends State<WebglAnimationMultiple> {
2727
});
2828
});
2929
threeJs = three.ThreeJS(
30-
settings: three.Settings(
31-
useSourceTexture: true,
32-
),
3330
onSetupComplete: (){setState(() {});},
3431
setup: setup
3532
);

examples/lib/animations/webgl_animation_skinning_additive_blending.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class _State extends State<WebglAnimationSkinningAdditiveBlending> {
3535
setup: setup,
3636
settings: three.Settings(
3737
outputEncoding: three.sRGBEncoding,
38-
useSourceTexture: true
3938
)
4039
);
4140
super.initState();
@@ -102,7 +101,7 @@ class _State extends State<WebglAnimationSkinningAdditiveBlending> {
102101
threeJs.scene.background = three.Color.fromHex32(0xa0a0a0);
103102
threeJs.scene.fog = three.Fog(0xa0a0a0, 10, 50);
104103

105-
final hemiLight = three.HemisphereLight(0xffffff, 0x444444,2);
104+
final hemiLight = three.HemisphereLight(0xffffff, 0x444444, 0.8);
106105
hemiLight.position.setValues(0, 20, 0);
107106
threeJs.scene.add(hemiLight);
108107

examples/lib/animations/webgl_animation_skinning_blending.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ class _State extends State<WebglAnimationSkinningBlending> {
2828
threeJs = three.ThreeJS(
2929
onSetupComplete: (){setState(() {});},
3030
setup: setup,
31-
settings: three.Settings(
32-
useSourceTexture: true
33-
)
3431
);
3532
super.initState();
3633
}
@@ -69,13 +66,12 @@ class _State extends State<WebglAnimationSkinningBlending> {
6966
threeJs.scene.background = three.Color.fromHex32(0xffffff);
7067
threeJs.scene.fog = three.Fog(0xa0a0a0, 10, 50);
7168

72-
final hemiLight = three.HemisphereLight(0xffffff, 0x444444,2);
69+
final hemiLight = three.HemisphereLight(0xffffff, 0x444444, 0.8);
7370
hemiLight.position.setValues(0, -4, -2);
7471
threeJs.scene.add(hemiLight);
7572

7673
final dirLight = three.DirectionalLight(0xffffff);
7774
dirLight.position.setValues(-0, -4, -2);
78-
dirLight.castShadow = true;
7975
dirLight.shadow!.camera!.top = 2;
8076
dirLight.shadow!.camera!.bottom = -2;
8177
dirLight.shadow!.camera!.left = -2;
@@ -84,10 +80,6 @@ class _State extends State<WebglAnimationSkinningBlending> {
8480
dirLight.shadow!.camera!.far = 40;
8581
threeJs.scene.add(dirLight);
8682

87-
// scene.add( new three.CameraHelper( dirLight.shadow.camera ) );
88-
89-
// ground
90-
9183
final loader = three.GLTFLoader();
9284
final gltf = await loader.fromAsset('assets/models/gltf/Soldier.gltf');
9385

0 commit comments

Comments
 (0)