Skip to content

Commit

Permalink
committed up-to-date shaders project
Browse files Browse the repository at this point in the history
  • Loading branch information
LGhassen committed Apr 1, 2017
1 parent 6ff9a46 commit cdb28f4
Show file tree
Hide file tree
Showing 128 changed files with 8,249 additions and 227 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ scatterer/bin/Release/System.Xml.dll
scatterer/bin/Release/TDx.TDxInput.dll
scatterer/bin/Release/TrackIRUnity.dll
scatterer/bin/Release/UnityEngine.dll
scatterer/Shaders/scattererShaders/Library
10 changes: 9 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ This project is under the following license:

GNU GENERAL PUBLIC LICENSE Version 3

Copyright (c) 2015 Ghassen Lahmar
Shader files borrowed from the EVE mod are under the MIT license:
-SphereCloud.Shader
-CloudVolumeParticle.shader
-cubeMap.cginc
-EVEUtils.cginc
-alphaMap.cginc
-noiseSimplex.cginc

Copyright (c) 2015-2017 Ghassen Lahmar
12 changes: 12 additions & 0 deletions scatterer/Shaders/readme.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
How to use:

1) Get Unity version that matches KSP (5.4.0.f3 at this time)

2) Navigate to this project in Unity

3) Go into .\Assets\Shaders\ExportAssetBundle.cs and modify the output directory to where you want the compiled shaders to go



4) In unity Editor, go to the assets menu and press "export asset bundles"

Binary file not shown.
150 changes: 150 additions & 0 deletions scatterer/Shaders/scattererShaders/Assembly-CSharp-Editor.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace></RootNamespace>
<ProjectGuid>{1BA7E86D-23C1-619A-C471-A2388FCC27DA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-CSharp-Editor</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<BaseDirectory>Assets</BaseDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_5_2_4;UNITY_5_2;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_REFLECTION_BUFFERS;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_LOG_MIXED_STACKTRACE;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>E:/gh/Unity5/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>E:/gh/Unity5/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Super Sampling (SSAA)\Editor\SSAAInspector.cs" />
<None Include="Assets\shaders\DecodedToFloat.shader" />
<None Include="Assets\shaders\customDepthTexture.shader" />
<None Include="Assets\shaders\EVEUtils.cginc" />
<None Include="Assets\shaders\ShadowVolumeDepth.shader" />
<None Include="Assets\shaders\InitDisplacement.shader" />
<None Include="Assets\shaders\cubeMap.cginc" />
<None Include="Assets\shaders\noiseSimplex.cginc" />
<None Include="Assets\shaders\CloudVolumeParticle.shader" />
<None Include="Assets\shaders\Fourier.shader" />
<None Include="Assets\shaders\WriteToFloat.shader" />
<None Include="Assets\shaders\SphereCloud.shader" />
<None Include="Assets\Super Sampling (SSAA)\Resources\BilinearSharper.shader" />
<None Include="Assets\Super Sampling (SSAA)\Resources\LanczosHigh.shader" />
<None Include="Assets\shaders\InitSpectrum.shader" />
<None Include="Assets\Super Sampling (SSAA)\Resources\BilinearDefault.shader" />
<None Include="Assets\shaders\atmosphereGhoss 24 bit depth buffer.shader" />
<None Include="Assets\shaders\OceanDisplacement3.cginc" />
<None Include="Assets\shaders\alphaMap.cginc" />
<None Include="Assets\shaders\OceanBRDF.cginc" />
<None Include="Assets\shaders\WhiteCapsPrecompute0.shader" />
<None Include="Assets\shaders\AtmosphereScatterer.cginc" />
<None Include="Assets\shaders\AtmosphereNew.cginc" />
<None Include="Assets\shaders\SunGlare.shader" />
<None Include="Assets\shaders\SkyScaledBox.shader" />
<None Include="Assets\Super Sampling (SSAA)\Resources\BilinearHigh.shader" />
<None Include="Assets\shaders\OceanWhiteCapsModProj3.shader" />
<None Include="Assets\shaders\InitJacobians.shader" />
<None Include="Assets\shaders\Utility.cginc" />
<Reference Include="UnityEngine.Advertisements">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/Advertisements/UnityEngine.Advertisements.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Advertisements">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/Advertisements/Editor/UnityEditor.Advertisements.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.UI">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/GUISystem/Editor/UnityEditor.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Networking">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Networking">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/Networking/Editor/UnityEditor.Networking.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Analytics">
<HintPath>E:/gh/Unity5/Editor/Data/UnityExtensions/Unity/UnityAnalytics/UnityEngine.Analytics.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Graphs">
<HintPath>E:/gh/Unity5/Editor/Data/Managed/UnityEditor.Graphs.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Android.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/androidplayer/UnityEditor.Android.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.iOS.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.WP8.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/wp8support/UnityEditor.WP8.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Metro.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/metrosupport/UnityEditor.Metro.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.Tizen.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/TizenPlayer/UnityEditor.Tizen.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.SamsungTV.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/stvplayer/UnityEditor.SamsungTV.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.WebGL.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/webglsupport/UnityEditor.WebGL.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.LinuxStandalone.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/linuxstandalonesupport/UnityEditor.LinuxStandalone.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.WindowsStandalone.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.OSXStandalone.Extensions">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/macstandalonesupport/UnityEditor.OSXStandalone.Extensions.dll</HintPath>
</Reference>
<Reference Include="SSAA">
<HintPath>E:/gh/unityprojs/scattererShadersU5/scattererShaders/Assets/Super Sampling (SSAA)/Data/SSAA.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil">
<HintPath>E:/gh/Unity5/Editor/Data/Managed/Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.iOS.Extensions.Xcode">
<HintPath>E:/gh/Unity5/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Xcode.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>
112 changes: 112 additions & 0 deletions scatterer/Shaders/scattererShaders/Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace></RootNamespace>
<ProjectGuid>{87622294-0BFC-2C93-A2E6-774E6D27C210}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-CSharp</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<BaseDirectory>Assets</BaseDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_4_0;UNITY_5_4;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_EDITOR_RETINA;ENABLE_RETINA_GUISTYLES;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_SPRITE_POLYGON;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;ENABLE_EDITOR_TESTS_RUNNER;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;UNITY_TEAM_LICENSE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>E:/gh/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>E:/gh/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\shaders\ExportAssetBundle.cs" />
<None Include="Assets\shaders\DecodedToFloat.shader" />
<None Include="Assets\shaders\customDepthTexture.shader" />
<None Include="Assets\shaders\SphereCloud - Copy.shader" />
<None Include="Assets\shaders\noiseSimplex.cginc" />
<None Include="Assets\shaders\cubeMap.cginc" />
<None Include="Assets\shaders\EVE\old\EVEUtils.cginc" />
<None Include="Assets\shaders\PQSScattererLightTest.shader" />
<None Include="Assets\shaders\ShadowVolumeDepth.shader" />
<None Include="Assets\shaders\SphereCloud - Copy (2).shader" />
<None Include="Assets\shaders\InitDisplacement.shader" />
<None Include="Assets\shaders\EVE\old\cubeMap.cginc" />
<None Include="Assets\shaders\OceanLight.cginc" />
<None Include="Assets\shaders\SimpleBlit.shader" />
<None Include="Assets\shaders\SunGlare - Copy.shader" />
<None Include="Assets\shaders\EVE\old\noiseSimplex.cginc" />
<None Include="Assets\shaders\EVE\old\CloudVolumeParticle.shader" />
<None Include="Assets\shaders\Fourier.shader" />
<None Include="Assets\shaders\SkyScaledBoxScaled.shader" />
<None Include="Assets\shaders\WriteToFloat.shader" />
<None Include="Assets\shaders\SphereCloudOld.shader" />
<None Include="Assets\shaders\EVE\old\SphereCloud.shader" />
<None Include="Assets\shaders\InitSpectrum.shader" />
<None Include="Assets\shaders\EVEUtils.cginc" />
<None Include="Assets\shaders\ShadowVolumeDepthAdditive.shader" />
<None Include="Assets\shaders\EVE\old\SphereCloudOld.shader" />
<None Include="Assets\shaders\atmosphereGhoss 24 bit depth buffer.shader" />
<None Include="Assets\shaders\SphereCloud - Copy (3).shader" />
<None Include="Assets\shaders\OceanDisplacement3.cginc" />
<None Include="Assets\shaders\OceanWhiteCapsModProj3PixelLights.shader" />
<None Include="Assets\shaders\EVE\old\alphaMap.cginc" />
<None Include="Assets\shaders\OceanBRDF.cginc" />
<None Include="Assets\shaders\WhiteCapsPrecompute0.shader" />
<None Include="Assets\shaders\AtmosphereScatterer.cginc" />
<None Include="Assets\shaders\SphereCloud - Copy (4).shader" />
<None Include="Assets\shaders\AtmosphereNew.cginc" />
<None Include="Assets\shaders\SunGlare.shader" />
<None Include="Assets\shaders\atmosphereGhoss 24 bit depth buffer AdditiveGodrays.shader" />
<None Include="Assets\shaders\SunFlareExtinction.shader" />
<None Include="Assets\shaders\atmosphereScatterNew.shader" />
<None Include="Assets\shaders\SkyScaledBox.shader" />
<None Include="Assets\shaders\alphaMap.cginc" />
<None Include="Assets\shaders\OceanWhiteCapsModProj3.shader" />
<None Include="Assets\shaders\AccumulateExposure.shader" />
<None Include="Assets\shaders\SphereCloud.shader" />
<None Include="Assets\shaders\InitJacobians.shader" />
<None Include="Assets\shaders\CloudVolumeParticle.shader" />
<None Include="Assets\shaders\Utility.cginc" />
<Reference Include="UnityEngine.UI">
<HintPath>E:/gh/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Networking">
<HintPath>E:/gh/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->

</Project>
Loading

0 comments on commit cdb28f4

Please sign in to comment.