Viewcube with outline shading
One pass wonder... Stupid viewcube done with 3 shaders on one pass
Vertex sends information to geometry shader which passes out 3 times the triangles. Because of blending there will be artefacts if only scaling the shadow and then the normal cube on top. Now it makes shadow of original size then on top of that the scaled shadow and then on top of those the normal cube... Fragment shader know the mouse position and alter cube's alpha channel. Cube is highlighted based on a normal list sent along the vertex positions. Normals are not for the cube only for highlighting the faces, edges and corners, almost works good...
Видео Viewcube with outline shading канала Jyrki Koivisto
Vertex sends information to geometry shader which passes out 3 times the triangles. Because of blending there will be artefacts if only scaling the shadow and then the normal cube on top. Now it makes shadow of original size then on top of that the scaled shadow and then on top of those the normal cube... Fragment shader know the mouse position and alter cube's alpha channel. Cube is highlighted based on a normal list sent along the vertex positions. Normals are not for the cube only for highlighting the faces, edges and corners, almost works good...
Видео Viewcube with outline shading канала Jyrki Koivisto
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
ArosZuneVectorCustomClass3Allwinner SoC FEL loaderuploadingBridgeport first runS-Curve with addition and subtraction only (more details)Silppua 20mmpuutaRaspberryPi bootsplashfstl fork for yet another clone project...STLView with vboXInput class for AROS take 3XInput for AROS take twoS-Curve from JounceDSPAccessing the test windowsACPL C790STLViewTNC155A USBStupid as a stupid can beMojo FPGA LED Blinkercanny edge detection opencv machine vision