/dports/graphics/urho3d/Urho3D-1.7.1/bin/CoreData/Shaders/GLSL/ |
H A D | UnlitParticle.glsl | 39 vec4 diffColor = cMatDiffColor * texture2D(sDiffMap, vTexCoord); 41 if (diffColor.a < 0.5) 45 vec4 diffColor = cMatDiffColor; 49 diffColor *= vColor; 63 if (diffColor.a < 0.01) 83 diffColor.a = max(diffColor.a - fade, 0.0); 85 diffColor.rgb = max(diffColor.rgb - fade, vec3(0.0, 0.0, 0.0)); 89 gl_FragColor = vec4(GetFog(diffColor.rgb, fogFactor), diffColor.a);
|
H A D | Unlit.glsl | 31 vec4 diffColor = cMatDiffColor * texture2D(sDiffMap, vTexCoord); 33 if (diffColor.a < 0.5) 37 vec4 diffColor = cMatDiffColor; 41 diffColor *= vColor; 56 gl_FragData[0] = vec4(GetFog(diffColor.rgb, fogFactor), diffColor.a); 61 gl_FragColor = vec4(GetFog(diffColor.rgb, fogFactor), diffColor.a);
|
H A D | PBRLitSolid.glsl | 120 vec4 diffColor = cMatDiffColor * diffInput; 122 vec4 diffColor = cMatDiffColor; 126 diffColor *= vColor; 144 vec3 specColor = mix(0.08 * cMatSpecColor.rgb, diffColor.rgb, metalness); 145 diffColor.rgb = diffColor.rgb - diffColor.rgb * metalness; 206 finalColor += cAmbientColor.rgb * diffColor.rgb; 208 gl_FragColor = vec4(GetFog(finalColor, fogFactor), diffColor.a); 210 gl_FragColor = vec4(GetLitFog(finalColor, fogFactor), diffColor.a); 216 gl_FragData[1] = vec4(diffColor.rgb, spareData.g); 221 vec3 finalColor = vVertexLight * diffColor.rgb; [all …]
|
H A D | LitSolid.glsl | 116 vec4 diffColor = cMatDiffColor * diffInput; 118 vec4 diffColor = cMatDiffColor; 122 diffColor *= vColor; 171 finalColor = diff * lightColor * diffColor.rgb; 175 finalColor += cAmbientColor.rgb * diffColor.rgb; 177 gl_FragColor = vec4(GetFog(finalColor, fogFactor), diffColor.a); 179 gl_FragColor = vec4(GetLitFog(finalColor, fogFactor), diffColor.a); 192 vec3 finalColor = vVertexLight * diffColor.rgb; 211 gl_FragData[1] = fogFactor * vec4(diffColor.rgb, specIntensity); 216 vec3 finalColor = vVertexLight * diffColor.rgb; [all …]
|
H A D | Basic.glsl | 28 vec4 diffColor = cMatDiffColor; 31 diffColor *= vColor; 35 gl_FragColor = diffColor; 43 gl_FragColor = diffColor * diffInput; 51 gl_FragColor = vec4(diffColor.rgb, diffColor.a * alphaInput);
|
H A D | LitParticle.glsl | 89 vec4 diffColor = cMatDiffColor * diffInput; 91 vec4 diffColor = cMatDiffColor; 95 diffColor *= vColor; 109 if (diffColor.a < 0.01) 128 diffColor.a = max(diffColor.a - fade, 0.0); 151 finalColor = diff * lightColor * diffColor.rgb; 152 gl_FragColor = vec4(GetLitFog(finalColor, fogFactor), diffColor.a); 155 vec3 finalColor = vVertexLight * diffColor.rgb; 157 gl_FragColor = vec4(GetFog(finalColor, fogFactor), diffColor.a);
|
H A D | TerrainBlend.glsl | 112 vec4 diffColor = cMatDiffColor * ( 153 finalColor = diff * lightColor * (diffColor.rgb + spec * specColor * cLightColor.a); 155 finalColor = diff * lightColor * diffColor.rgb; 159 finalColor += cAmbientColor.rgb * diffColor.rgb; 161 gl_FragColor = vec4(GetFog(finalColor, fogFactor), diffColor.a); 163 gl_FragColor = vec4(GetLitFog(finalColor, fogFactor), diffColor.a); 176 gl_FragData[0] = vec4(GetFog(vVertexLight * diffColor.rgb, fogFactor), 1.0); 177 gl_FragData[1] = fogFactor * vec4(diffColor.rgb, specIntensity); 182 vec3 finalColor = vVertexLight * diffColor.rgb; 190 finalColor += lightInput.rgb * diffColor.rgb + lightSpecColor * specColor; [all …]
|
H A D | PBR.glsl | 11 …ghtVec, vec3 normal, vec3 toCamera, float roughness, vec3 specColor, vec3 diffColor, out float ndl) 56 vec3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, hdv) * ndl; 64 …ghtVec, vec3 normal, vec3 toCamera, float roughness, vec3 specColor, vec3 diffColor, out float ndl) 105 vec3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, hdv) * ndl; 119 // diffColor = the rgb color of the pixel 121 …ghtDir, vec3 lightVec, vec3 toCamera, vec3 normal, float roughness, vec3 diffColor, vec3 specColor) 130 vec3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, vdh); 138 …ularFactor = TubeLight(worldPos, lightVec, normal, toCamera, roughness, specColor, diffColor, ndl); 143 …arFactor = SphereLight(worldPos, lightVec, normal, toCamera, roughness, specColor, diffColor, ndl);
|
/dports/graphics/urho3d/Urho3D-1.7.1/bin/CoreData/Shaders/HLSL/ |
H A D | UnlitParticle.hlsl | 95 float4 diffColor = cMatDiffColor * Sample2D(DiffMap, iTexCoord); 97 if (diffColor.a < 0.5) 101 float4 diffColor = cMatDiffColor; 105 diffColor *= iColor; 119 if (diffColor.a < 0.01) 138 diffColor.a = max(diffColor.a - fade, 0.0); 140 diffColor.rgb = max(diffColor.rgb - fade, float3(0.0, 0.0, 0.0)); 144 oColor = float4(GetFog(diffColor.rgb, fogFactor), diffColor.a);
|
H A D | Unlit.hlsl | 79 float4 diffColor = cMatDiffColor * Sample2D(DiffMap, iTexCoord); 81 if (diffColor.a < 0.5) 85 float4 diffColor = cMatDiffColor; 89 diffColor *= iColor; 105 oColor = float4(GetFog(diffColor.rgb, fogFactor), diffColor.a); 110 oColor = float4(GetFog(diffColor.rgb, fogFactor), diffColor.a);
|
H A D | PBRLitSolid.hlsl | 199 float4 diffColor = cMatDiffColor * diffInput; 201 float4 diffColor = cMatDiffColor; 205 diffColor *= iColor; 224 float3 specColor = lerp(0.08 * cMatSpecColor.rgb, diffColor.rgb, metalness); 226 diffColor.rgb = diffColor.rgb - diffColor.rgb * metalness; // Modulate down the diffuse 289 finalColor += cAmbientColor.rgb * diffColor.rgb; 291 oColor = float4(GetFog(finalColor, fogFactor), diffColor.a); 293 oColor = float4(GetLitFog(finalColor, fogFactor), diffColor.a); 299 oAlbedo = float4(diffColor.rgb, spareData.g); 304 float3 finalColor = iVertexLight * diffColor.rgb; [all …]
|
H A D | LitSolid.hlsl | 191 float4 diffColor = cMatDiffColor * diffInput; 193 float4 diffColor = cMatDiffColor; 197 diffColor *= iColor; 246 finalColor = diff * lightColor * diffColor.rgb; 250 finalColor += cAmbientColor.rgb * diffColor.rgb; 252 oColor = float4(GetFog(finalColor, fogFactor), diffColor.a); 254 oColor = float4(GetLitFog(finalColor, fogFactor), diffColor.a); 267 float3 finalColor = iVertexLight * diffColor.rgb; 285 oAlbedo = fogFactor * float4(diffColor.rgb, specIntensity); 290 float3 finalColor = iVertexLight * diffColor.rgb; [all …]
|
H A D | Basic.hlsl | 67 float4 diffColor = cMatDiffColor; 70 diffColor *= iColor; 74 oColor = diffColor; 82 oColor = diffColor * diffInput; 86 oColor = float4(diffColor.rgb, diffColor.a * alphaInput);
|
H A D | LitParticle.hlsl | 154 float4 diffColor = cMatDiffColor * diffInput; 156 float4 diffColor = cMatDiffColor; 160 diffColor *= iColor; 174 if (diffColor.a < 0.01) 192 diffColor.a = max(diffColor.a - fade, 0.0); 214 finalColor = diff * lightColor * diffColor.rgb; 215 oColor = float4(GetLitFog(finalColor, fogFactor), diffColor.a); 218 float3 finalColor = iVertexLight * diffColor.rgb; 220 oColor = float4(GetFog(finalColor, fogFactor), diffColor.a);
|
H A D | TerrainBlend.hlsl | 157 float4 diffColor = cMatDiffColor * ( 198 finalColor = diff * lightColor * (diffColor.rgb + spec * specColor * cLightColor.a); 200 finalColor = diff * lightColor * diffColor.rgb; 204 finalColor += cAmbientColor.rgb * diffColor.rgb; 206 oColor = float4(GetFog(finalColor, fogFactor), diffColor.a); 208 oColor = float4(GetLitFog(finalColor, fogFactor), diffColor.a); 221 float3 finalColor = iVertexLight * diffColor.rgb; 224 oAlbedo = fogFactor * float4(diffColor.rgb, specIntensity); 229 float3 finalColor = iVertexLight * diffColor.rgb; 237 finalColor += lightInput.rgb * diffColor.rgb + lightSpecColor * specColor; [all …]
|
H A D | PBR.hlsl | 11 …float3 normal, float3 toCamera, float roughness, float3 specColor, float3 diffColor, out float ndl) 56 const float3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, hdv) * ndl; 65 …float3 normal, float3 toCamera, float roughness, float3 specColor, float3 diffColor, out float ndl) 106 const float3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, hdv) * ndl; 120 // diffColor = the rgb color of the pixel 122 …loat3 lightVec, float3 toCamera, float3 normal, float roughness, float3 diffColor, float3 specColo… 132 const float3 diffuseFactor = Diffuse(diffColor, roughness, ndv, ndl, vdh) * ndl; 140 … return TubeLight(worldPos, lightVec, normal, toCamera, roughness, specColor, diffColor, ndl); 145 … return SphereLight(worldPos, lightVec, normal, toCamera, roughness, specColor, diffColor, ndl);
|
/dports/finance/hs-hledger-ui/hledger-ui-1.19/_cabal_deps/vty-5.33/src/Graphics/Vty/ |
H A D | DisplayAttributes.hs | 125 , foreColorDiff = diffColor (fixedForeColor attr) (fixedForeColor attr') 126 , backColorDiff = diffColor (fixedBackColor attr) (fixedBackColor attr') 135 diffColor :: Maybe Color -> Maybe Color -> DisplayColorDiff 136 diffColor Nothing (Just c') = SetColor c' function 137 diffColor (Just c) (Just c') function 140 diffColor Nothing Nothing = NoColorChange function 141 diffColor (Just _) Nothing = ColorToDefault function
|
/dports/devel/hs-git-brunch/git-brunch-1.5.1.0/_cabal_deps/vty-5.33/src/Graphics/Vty/ |
H A D | DisplayAttributes.hs | 125 , foreColorDiff = diffColor (fixedForeColor attr) (fixedForeColor attr') 126 , backColorDiff = diffColor (fixedBackColor attr) (fixedBackColor attr') 135 diffColor :: Maybe Color -> Maybe Color -> DisplayColorDiff 136 diffColor Nothing (Just c') = SetColor c' function 137 diffColor (Just c) (Just c') function 140 diffColor Nothing Nothing = NoColorChange function 141 diffColor (Just _) Nothing = ColorToDefault function
|
/dports/net-im/matterhorn/matterhorn-50200.13.0/_cabal_deps/vty-5.32/src/Graphics/Vty/ |
H A D | DisplayAttributes.hs | 125 , foreColorDiff = diffColor (fixedForeColor attr) (fixedForeColor attr') 126 , backColorDiff = diffColor (fixedBackColor attr) (fixedBackColor attr') 135 diffColor :: Maybe Color -> Maybe Color -> DisplayColorDiff 136 diffColor Nothing (Just c') = SetColor c' function 137 diffColor (Just c) (Just c') function 140 diffColor Nothing Nothing = NoColorChange function 141 diffColor (Just _) Nothing = ColorToDefault function
|
/dports/misc/hs-hascard/hascard-0.3.0.1/_cabal_deps/vty-5.30/src/Graphics/Vty/ |
H A D | DisplayAttributes.hs | 123 , foreColorDiff = diffColor (fixedForeColor attr) (fixedForeColor attr') 124 , backColorDiff = diffColor (fixedBackColor attr) (fixedBackColor attr') 133 diffColor :: Maybe Color -> Maybe Color -> DisplayColorDiff 134 diffColor Nothing (Just c') = SetColor c' function 135 diffColor (Just c) (Just c') function 138 diffColor Nothing Nothing = NoColorChange function 139 diffColor (Just _) Nothing = ColorToDefault function
|
/dports/misc/usd/USD-21.11/pxr/usd/plugin/usdMtlx/testenv/testUsdMtlxFileFormat.testenv/baseline/ |
H A D | Include.usda | 17 color3f inputs:diffColor 30 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 42 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 48 color3f inputs:diffColor = (0.001, 0.001, 0.001) 54 color3f inputs:diffColor = (0.049, 0.043, 0.033) 60 color3f inputs:diffColor = (0.134, 0.13, 0.125) 71 color3f inputs:diffColor = (0.17, 0.26, 0.23) 82 color3f inputs:diffColor 94 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple2.inputs:diffColor> 103 color3f inputs:diffColor = (0.17, 0.26, 0.23)
|
H A D | Include_From_Usdz.usda | 17 color3f inputs:diffColor 30 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 42 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 48 color3f inputs:diffColor = (0.001, 0.001, 0.001) 54 color3f inputs:diffColor = (0.049, 0.043, 0.033) 60 color3f inputs:diffColor = (0.134, 0.13, 0.125) 71 color3f inputs:diffColor = (0.17, 0.26, 0.23) 82 color3f inputs:diffColor 94 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple2.inputs:diffColor> 103 color3f inputs:diffColor = (0.17, 0.26, 0.23)
|
H A D | Looks.usda | 17 color3f inputs:diffColor 30 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 42 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple.inputs:diffColor> 48 color3f inputs:diffColor = (0.001, 0.001, 0.001) 54 color3f inputs:diffColor = (0.049, 0.043, 0.033) 60 color3f inputs:diffColor = (0.134, 0.13, 0.125) 71 color3f inputs:diffColor = (0.17, 0.26, 0.23) 82 color3f inputs:diffColor 94 color3f inputs:diffColor.connect = </MaterialX/Materials/Msimple2.inputs:diffColor> 103 color3f inputs:diffColor = (0.17, 0.26, 0.23)
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/src/shaders/ |
H A D | SkLightingShader.cpp | 364 SkColor diffColor = fPaintColor; in shadeSpan() local 377 diffColor = SkUnPreMultiply::PMColorToColor(diffuse[i]); in shadeSpan() 383 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan() 384 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan() 385 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 400 accum.fX += light.color().fX * SkColorGetR(diffColor) * illuminanceScalingFactor; in shadeSpan() 401 accum.fY += light.color().fY * SkColorGetG(diffColor) * illuminanceScalingFactor; in shadeSpan() 402 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * illuminanceScalingFactor; in shadeSpan() 406 result[i] = convert(accum, SkColorGetA(diffColor)); in shadeSpan()
|
/dports/www/firefox/firefox-99.0/gfx/skia/skia/src/shaders/ |
H A D | SkLightingShader.cpp | 364 SkColor diffColor = fPaintColor; in shadeSpan() local 377 diffColor = SkUnPreMultiply::PMColorToColor(diffuse[i]); in shadeSpan() 383 accum.fX += lightShader.fLights->ambientLightColor().fX * SkColorGetR(diffColor); in shadeSpan() 384 accum.fY += lightShader.fLights->ambientLightColor().fY * SkColorGetG(diffColor); in shadeSpan() 385 accum.fZ += lightShader.fLights->ambientLightColor().fZ * SkColorGetB(diffColor); in shadeSpan() 400 accum.fX += light.color().fX * SkColorGetR(diffColor) * illuminanceScalingFactor; in shadeSpan() 401 accum.fY += light.color().fY * SkColorGetG(diffColor) * illuminanceScalingFactor; in shadeSpan() 402 accum.fZ += light.color().fZ * SkColorGetB(diffColor) * illuminanceScalingFactor; in shadeSpan() 406 result[i] = convert(accum, SkColorGetA(diffColor)); in shadeSpan()
|