본문 바로가기

분류 전체보기

(11)
[OpenGL 공부] Textures (1) 학습을 위해 참조한 사이트 https://learnopengl.com/Getting-started/Textures LearnOpenGL - Textures Textures Getting-started/Textures We learned that to add more detail to our objects we can use colors for each vertex to create some interesting images. However, to get a fair bit of realism we'd have to have many vertices so we could specify a lot of colo learnopengl.com 텍스쳐 좌표 텍스쳐 좌표는 2D 텍스쳐에서 각 x, y축에서 0~1의..
[OpenGL 공부] Shader 학습을 위해 참조한 사이트 https://learnopengl.com/Getting-started/Shaders LearnOpenGL - Shaders Shaders Getting-started/Shaders As mentioned in the Hello Triangle chapter, shaders are little programs that rest on the GPU. These programs are run for each specific section of the graphics pipeline. In a basic sense, shaders are nothing more than program learnopengl.com 셰이더 GPU에 기반을 둔 작은 프로그램으로, 기본적인 의미에서 입력을 ..
[OpenGL 공부] Hello Triangle 학습을 위해 참고한 사이트 https://learnopengl.com/Getting-started/Hello-Triangle Vertex Shader : 3D 좌표를 다른 3D 좌표로 변환 Geometry Shader(선택적) : 도형을 이루는 정점 컬렉션에서 새로운 정점을 형성하여 다른 모양을 형성할 수 있도록 함. Shape Assembly : 하나 이상의 프리미티브를 형성하는 정점들을 입력으로 하여 모든 점들을 조립 Raterization : Shape 결과를 최종 화면의 픽셀에 매핑하여 프래그먼트 셰이더가 사용할 수 있도록 프래그먼트를 생성 Fragment Shader : 픽셀의 최종 색상을 계산 Tests and Blending : 알파 테스트, 블렌딩 단계. 또한 각 객체의 깊이 값을 통해 개..