From 53c6a4fbe530752c6d4a62dd8574be596141ffdf Mon Sep 17 00:00:00 2001 From: wuyize Date: Thu, 19 Jan 2023 16:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86painting.comp?= =?UTF-8?q?=E7=88=86=E7=82=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Shaders/painting.comp | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/ArchitectureColoredPainting/Shaders/painting.comp b/ArchitectureColoredPainting/Shaders/painting.comp index 34e5a91..7f27e23 100644 --- a/ArchitectureColoredPainting/Shaders/painting.comp +++ b/ArchitectureColoredPainting/Shaders/painting.comp @@ -876,49 +876,6 @@ void drawLine(in float d, in uint styleIndex, out vec4 elementColor, out vec2 me } } -void drawLine(in float d, in uint styleIndex, out vec4 elementColor, out vec2 metallicRoughness) -{ - elementColor = vec4(1); - metallicRoughness = vec2(0.8); - switch(int(elementData[styleIndex+3])) - { - case 0: - { - elementColor = vec4(elementData[styleIndex+7],elementData[styleIndex+8],elementData[styleIndex+9],1); - metallicRoughness = vec2(elementData[styleIndex+10],elementData[styleIndex+11]); - break; - } - case 1: - { - elementColor = vec4(mix(vec3(0), vec3(1), d), 1); - metallicRoughness = vec2(0,0.8); - break; - } - case 2: - { - float levels[] = {0.25,0.5,0.75}; - vec3 colors[] = {vec3(1,0,0), vec3(0,1,0), vec3(0,0,1), vec3(1,1,0)}; - int i = 0; - while(i<3) - { - if(d