Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
ProjectiveTextureMapping
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WooHyungChoi
ProjectiveTextureMapping
Commits
5839ec6d
Commit
5839ec6d
authored
5 years ago
by
Woohyung Choi
Browse files
Options
Downloads
Patches
Plain Diff
여튼 commit
parent
92814b38
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
LearnOpenGL/Source.cpp
+11
-10
11 additions, 10 deletions
LearnOpenGL/Source.cpp
with
11 additions
and
10 deletions
LearnOpenGL/Source.cpp
+
11
−
10
View file @
5839ec6d
...
...
@@ -61,22 +61,23 @@ int main()
auto
cube
=
make_mesh
(
"cube.obj"
);
auto
black
=
load_
imag
e
(
"black.png"
);
auto
magenta
=
load_
imag
e
(
"magenta.png"
);
auto
orange
=
load_
imag
e
(
"orange.png"
);
auto
white
=
load_
imag
e
(
"white.png"
);
auto
transparent
=
load_
imag
e
(
"transparent.png"
);
auto
black
=
load_
textur
e
(
"black.png"
);
auto
magenta
=
load_
textur
e
(
"magenta.png"
);
auto
orange
=
load_
textur
e
(
"orange.png"
);
auto
white
=
load_
textur
e
(
"white.png"
);
auto
transparent
=
load_
textur
e
(
"transparent.png"
);
auto
wall
=
load_image
(
"wall.jpg"
);
auto
container_diffuse
=
load_image
(
"container2.png"
);
auto
container_specular
=
load_image
(
"container2_specular.png"
);
auto
wall
=
load_image
(
"wall.jpg"
,
ImageType
::
CLAMP
);
auto
wall_tex
=
load_image
(
"wall.jpg"
,
ImageType
::
REPEAT
);
auto
container_diffuse
=
load_texture
(
"container2.png"
);
auto
container_specular
=
load_texture
(
"container2_specular.png"
);
auto
defaultMaterial
=
new
Material
(
lightmap
,
orange
,
transparent
);
auto
cubeMaterial
=
new
Material
(
lightmap
,
container_diffuse
,
container_specular
);
auto
planeMaterial
=
new
Material
(
lightmap
,
magenta
,
transparent
);
auto
projectorMaterial
=
new
Material
(
projector_shader
,
transparent
,
transparent
);
auto
projectorMaterial
=
new
Material
(
projector_shader
,
wall_tex
,
wall
);
auto
projector
=
make_render_object
(
make_mesh
(
"cube.obj"
)
);
auto
projector
=
make_render_object
(
cube
);
{
projector
->
set_translate
(
glm
::
vec3
(
0.0
f
,
10.0
f
,
0.0
f
));
}
...
...
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