Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project_Phoenix
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Project_Phoenix
Commits
4fd66922
Commit
4fd66922
authored
6 years ago
by
aboensch
Browse files
Options
Downloads
Patches
Plain Diff
CHG: improve layouting of test
parent
eb46c51d
No related branches found
No related tags found
1 merge request
!135
Feature/#458 custom materials
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/test_generic_material_loader.cpp
+10
-12
10 additions, 12 deletions
tests/src/test_generic_material_loader.cpp
with
10 additions
and
12 deletions
tests/src/test_generic_material_loader.cpp
+
10
−
12
View file @
4fd66922
...
...
@@ -46,20 +46,18 @@ SCENARIO("The Generic Material Loader can create Generic materials.",
REQUIRE
(
diffuseColor
[
2
]
==
0.f
);
auto
specularColor
=
materialResource
->
GetSpecularColor
();
REQUIRE
(
specularColor
[
0
]
==
phx
::
Material
::
GetDefault
()
->
GetSpecularColor
()[
0
]);
REQUIRE
(
specularColor
[
1
]
==
phx
::
Material
::
GetDefault
()
->
GetSpecularColor
()[
1
]);
REQUIRE
(
specularColor
[
2
]
==
phx
::
Material
::
GetDefault
()
->
GetSpecularColor
()[
2
]);
auto
specularColorDefault
=
phx
::
Material
::
GetDefault
()
->
GetSpecularColor
();
REQUIRE
(
specularColor
[
0
]
==
specularColorDefault
[
0
]);
REQUIRE
(
specularColor
[
1
]
==
specularColorDefault
[
1
]);
REQUIRE
(
specularColor
[
2
]
==
specularColorDefault
[
2
]);
auto
ambientColor
=
materialResource
->
GetAmbientColor
();
REQUIRE
(
ambientColor
[
0
]
==
phx
::
Material
::
GetDefault
()
->
GetAmbientColor
()[
0
]);
REQUIRE
(
ambientColor
[
1
]
==
phx
::
Material
::
GetDefault
()
->
GetAmbientColor
()[
1
]);
REQUIRE
(
ambientColor
[
2
]
==
phx
::
Material
::
GetDefault
()
->
GetAmbientColor
()[
2
]);
auto
ambientColorDefault
=
phx
::
Material
::
GetDefault
()
->
GetAmbientColor
();
REQUIRE
(
ambientColor
[
0
]
==
ambientColorDefault
[
0
]);
REQUIRE
(
ambientColor
[
1
]
==
ambientColorDefault
[
1
]);
REQUIRE
(
ambientColor
[
2
]
==
ambientColorDefault
[
2
]);
float
shininess
=
materialResource
->
GetShininess
();
REQUIRE
(
shininess
==
phx
::
Material
::
GetDefault
()
->
GetShininess
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment