[Cub3D] DDA알고리즘을 이용한 Ray Casting
·
42Seoul/Cub3D
www.youtube.com/watch?v=eOCQfxRQ2pY&t=205s lodev.org/cgtutor/raycasting.html Raycasting #define screenWidth 640 #define screenHeight 480 #define texWidth 64 #define texHeight 64 #define mapWidth 24 #define mapHeight 24 int worldMap[mapWidth][mapHeight]= { {4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7}, {4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0, lodev.org 위 자료들을 참고하여 이제 실전! 코드로 옮겨보자. 우선 계속 혼동이 왔던이유..
WONILLISM
'ray casting' 태그의 글 목록