Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
