Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
e50ef54b
Commit
e50ef54b
authored
Nov 04, 2020
by
TheNumbat
Browse files
fix directional light color export
parent
42f67118
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/assimp/code/AssetLib/Collada/ColladaExporter.cpp
View file @
e50ef54b
...
...
@@ -501,7 +501,15 @@ void ColladaExporter::WriteDirectionalLight(const aiLight *const light) {
mOutput
<<
startstr
<<
"<color sid=
\"
color
\"
>"
<<
color
.
r
<<
" "
<<
color
.
g
<<
" "
<<
color
.
b
<<
"</color>"
<<
endstr
;
mOutput
<<
startstr
<<
"<constant_attenuation>"
<<
light
->
mAttenuationConstant
<<
"</constant_attenuation>"
<<
endstr
;
mOutput
<<
startstr
<<
"<linear_attenuation>"
<<
light
->
mAttenuationLinear
<<
"</linear_attenuation>"
<<
endstr
;
mOutput
<<
startstr
<<
"<quadratic_attenuation>"
<<
light
->
mAttenuationQuadratic
<<
"</quadratic_attenuation>"
<<
endstr
;
PopTag
();
mOutput
<<
startstr
<<
"</directional>"
<<
endstr
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment