Category : graphics

Just a quick question here… How would you achieve something like this in Vulkan? ________________________________________________ | | | VK_SAMPLE_COUNT_1_BIT | | | | ____________________________________ | | | | | | | VK_SAMPLE_COUNT_4_BIT | | | | | | | | | | | | | | | | | | | |__________________________________| | |______________________________________________| The ..

Read more

I am new to OpenGL and Shaders. I want to write a toon shader. I have this OpenGL code: void display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); float black[] = { 0.0, 0.0, 0.0, 1.0 }; float red[] = { 1.0, 0.0, 0.0, 1.0 }; float green[] = { 0.0, 1.0, 0.0, 1.0 }; float blue[] ..

Read more

Here is an image of the issue I am facing in opengl : glTextureStorage2D ERROR In the image I tagged my texture also displays weirdly. Can someone help me figure out why the texture on the ground is incomplete and placed odd? This is my code: Ground.LoadModel("O_Ground.obj"); Fence.LoadModel("O_Fence.obj"); string names[] = { "Green.jpg","wood.jpg" }; glGenTextures(2, ..

Read more