Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631605
draw_model.as
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
595 B
Referenced Files
None
Subscribers
None
draw_model.as
View Options
void
drawLitModel
(
const
Model
&
model
,
const
Material
@
material
,
const
recti
&
position
,
const
quaterniond
&
rotation
,
double
scale
=
1.0
,
const
vec3f
&
lightPos
=
vec3f
(),
const
Color
&
lightColor
=
colors
::
White
)
{
Light
@
light
=
::
light
[
0
];
light
.
position
=
vec3f
(
position
.
center
.
x
,
-
100
.
f
,
position
.
center
.
y
);
if
(!
lightPos
.
zero
)
light
.
position
=
lightPos
;
light
.
diffuse
=
lightColor
;
light
.
specular
=
light
.
diffuse
;
light
.
radius
=
1000
.
f
;
light
.
att_quadratic
=
1
.
f
/(
500.0
*
500.0
);
light
.
enable
();
light
.
enable
();
model
.
draw
(
material
,
position
,
rotation
,
scale
);
resetLights
();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 12:22 PM (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152319
Default Alt Text
draw_model.as (595 B)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline