Skip to content

Commit 8158d30

Browse files
committed
Fix DCM
1 parent 8a1b866 commit 8158d30

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/lib/stories/system/resize_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ResizingRectangle extends RectangleComponent {
1313
void onGameResize(Vector2 size) {
1414
super.onGameResize(size);
1515

16-
this.size = size * .4;
16+
this.size = size * 0.4;
1717
}
1818
}
1919

packages/flame_3d/test/resources/shader/uniform_binding_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() {
99
group('uniform bindings', () {
1010
test('can bind a vec3 a slot', () {
1111
final slot = UniformSlot.value('Vertex', {'position'});
12-
final shader = createShader([slot]);
12+
final shader = _createShader([slot]);
1313

1414
shader.setVector3('Vertex.position', Vector3(7, 8, 9));
1515

@@ -20,7 +20,7 @@ void main() {
2020

2121
test('can bind multiple vector slots', () {
2222
final slot = UniformSlot.value('AmbientLight', {'color', 'position'});
23-
final shader = createShader([slot]);
23+
final shader = _createShader([slot]);
2424

2525
shader.setVector3('AmbientLight.position', Vector3(7, 8, 9));
2626
shader.setVector4('AmbientLight.color', Vector4(4, 3, 2, 1));
@@ -36,7 +36,7 @@ void main() {
3636

3737
test('can bind a mat4 a slot', () {
3838
final slot = UniformSlot.value('Vertex', {'camera'});
39-
final shader = createShader([slot]);
39+
final shader = _createShader([slot]);
4040

4141
shader.setMatrix4('Vertex.camera', Matrix4.identity());
4242

@@ -47,7 +47,7 @@ void main() {
4747

4848
test('can bind a vec3 to an array slot', () {
4949
final slot = UniformSlot.array('Light', {'position'});
50-
final shader = createShader([slot]);
50+
final shader = _createShader([slot]);
5151

5252
shader.setVector3('Light[0].position', Vector3(7, 8, 9));
5353

@@ -63,7 +63,7 @@ void main() {
6363
UniformSlot.value('Material', {'color', 'metallic'}),
6464
UniformSlot.array('Light', {'position', 'color'}),
6565
];
66-
final shader = createShader(slots);
66+
final shader = _createShader(slots);
6767

6868
shader.setVector3('Vertex.position', Vector3(1, 2, 3));
6969
shader.setVector4('Material.color', Vector4(4, 3, 2, 1));
@@ -105,7 +105,7 @@ void main() {
105105
});
106106
}
107107

108-
Shader createShader(List<UniformSlot> slots) {
108+
Shader _createShader(List<UniformSlot> slots) {
109109
return Shader(
110110
name: '-test-',
111111
slots: slots,

0 commit comments

Comments
 (0)