feat: render per-vertex color triangle
- Add shader class for vertex/fragment program compilation - Add vao class for vertex array object management - Render RGB gradient triangle with interpolated vertex colors
This commit is contained in:
@@ -19,6 +19,8 @@ add_executable(cuber "cuber.cpp"
|
||||
"cbt/opengl/buffer.cpp"
|
||||
"cbt/opengl/texture.cpp"
|
||||
"cbt/opengl/descriptor.cpp"
|
||||
"cbt/opengl/shader.cpp"
|
||||
"cbt/opengl/vao.cpp"
|
||||
)
|
||||
target_include_directories(cuber PRIVATE ".")
|
||||
target_compile_features(cuber PRIVATE cxx_std_23)
|
||||
|
||||
Reference in New Issue
Block a user