From 94ea75d173046c416cd289c6e28c96134a8230ac Mon Sep 17 00:00:00 2001 From: lghassen Date: Sun, 2 Dec 2018 00:53:01 +0100 Subject: [PATCH 1/3] cull zero-alpha volumetric particles --- Assets/Shaders/CloudVolumeParticle.shader | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Shaders/CloudVolumeParticle.shader b/Assets/Shaders/CloudVolumeParticle.shader index 9709e26c..ec839ab9 100644 --- a/Assets/Shaders/CloudVolumeParticle.shader +++ b/Assets/Shaders/CloudVolumeParticle.shader @@ -144,10 +144,10 @@ Shader "EVE/CloudVolumeParticle" { float4 mvCenter = mul(UNITY_MATRIX_MV, localOrigin); - o.pos = mul(UNITY_MATRIX_P, - mvCenter - + float4(v.vertex.xyz*localScale,v.vertex.w)); - + + o.pos = mul(UNITY_MATRIX_P,mvCenter+ float4(v.vertex.xyz*localScale,v.vertex.w)); + o.pos.z = o.color.a > (1.0/255.0) ? o.pos.z : -o.pos.w; //cull vertex if low alpha z/w = -1, behind far plane. source: Siggraph 2012, Creating vast game worlds (just cause 2) + float2 texcoodOffsetxy = ((2*v.texcoord)- 1); float4 texcoordOffset = float4(texcoodOffsetxy.x, texcoodOffsetxy.y, 0, v.vertex.w); From 826aaccbdc66280731509ae8f7cd97afcf03d1be Mon Sep 17 00:00:00 2001 From: lghassen Date: Sat, 22 Dec 2018 23:11:55 +0100 Subject: [PATCH 2/3] fix zero-alpha particle vertex culling on opengl --- Assets/Shaders/CloudVolumeParticle.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Shaders/CloudVolumeParticle.shader b/Assets/Shaders/CloudVolumeParticle.shader index ec839ab9..fda42a56 100644 --- a/Assets/Shaders/CloudVolumeParticle.shader +++ b/Assets/Shaders/CloudVolumeParticle.shader @@ -146,7 +146,7 @@ Shader "EVE/CloudVolumeParticle" { float4 mvCenter = mul(UNITY_MATRIX_MV, localOrigin); o.pos = mul(UNITY_MATRIX_P,mvCenter+ float4(v.vertex.xyz*localScale,v.vertex.w)); - o.pos.z = o.color.a > (1.0/255.0) ? o.pos.z : -o.pos.w; //cull vertex if low alpha z/w = -1, behind far plane. source: Siggraph 2012, Creating vast game worlds (just cause 2) + o.pos = o.color.a > (1.0/255.0) ? o.pos : float4(2.0, 2.0, 2.0, 1.0); //cull vertex if low alpha, pos outside clipspace float2 texcoodOffsetxy = ((2*v.texcoord)- 1); float4 texcoordOffset = float4(texcoodOffsetxy.x, texcoodOffsetxy.y, 0, v.vertex.w); From 39144bcc0b499988cfad05d880a8b697ec1f40b8 Mon Sep 17 00:00:00 2001 From: HebaruSan Date: Mon, 3 Jun 2019 21:08:38 -0500 Subject: [PATCH 3/3] Fix version file URL property and version max --- .../EnvironmentalVisualEnhancements.version | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ContentEVE/GameData/EnvironmentalVisualEnhancements/EnvironmentalVisualEnhancements.version b/ContentEVE/GameData/EnvironmentalVisualEnhancements/EnvironmentalVisualEnhancements.version index 319eda0b..940f754b 100644 --- a/ContentEVE/GameData/EnvironmentalVisualEnhancements/EnvironmentalVisualEnhancements.version +++ b/ContentEVE/GameData/EnvironmentalVisualEnhancements/EnvironmentalVisualEnhancements.version @@ -1,6 +1,6 @@ { "NAME": "Environmental Visual Enhancements", - "URL": "https://raw.githubusercontent.com/WazWaz/EnvironmentalVisualEnhancements/master/EnvironmentalVisualEnhancements.version", + "URL": "https://github.com/WazWaz/EnvironmentalVisualEnhancements/raw/master/ContentEVE/GameData/EnvironmentalVisualEnhancements/EnvironmentalVisualEnhancements.version", "DOWNLOAD" : "https://github.com/WazWaz/EnvironmentalVisualEnhancements/releases", "GITHUB": { "USERNAME": "WazWaz", @@ -25,7 +25,6 @@ }, "KSP_VERSION_MAX": { "MAJOR": 1, - "MINOR": 4, - "PATCH": 99 + "MINOR": 7 } }