Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How do I make the battleship in open gl look like an acutally battleship and how do i make the ocean look even? / *
How do I make the battleship in open gl look like an acutally battleship and how do i make the ocean look even?
ANSWERGLfloat shipvertices
fff
fff
fff
fff
fff
fff
fff center
;
Note: you can keep these shipcolors if you want...
GLfloat oceansurfacecolors
ffff Dark Blue
ffff Dark Blue
ffff Light Blue
ffff Light Blue
;
ANSWERGLfloat shipcolors this is the new array of shipcolors, simply truncated
ffff Dark gray
ffff
ffff Slightly lighter gray
ffff
ffff
ffff
ffff Light gray for the center part
;
Create an array of shipindices of triangles. This should have numbers think about why
ANSWERGLuint shipindices
;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started