Search the Community

Showing results for tags 'shader'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • The Daily Kerbal
  • General KSP
    • KSP Discussion
    • Suggestions & Development Discussion
    • Challenges & Mission ideas
    • The Spacecraft Exchange
    • KSP Fan Works
  • Gameplay and Technical Support
    • Gameplay Questions and Tutorials
    • Technical Support (PC, unmodded installs)
    • Technical Support (PC, modded installs)
    • Technical Support (PlayStation 4, XBox One)
  • Add-ons
    • Add-on Discussions
    • Add-on Releases
    • Add-on Development
  • Community
    • Welcome Aboard
    • Science & Spaceflight
    • Kerbal Network
    • The Lounge
  • Making History Expansion
    • Making History Missions
    • Making History Discussion
    • Making History Support
  • Breaking Ground Expansion
    • Breaking Ground Discussion
    • Breaking Ground Support
  • International
    • International
  • KerbalEDU Forums
    • KerbalEDU
    • KerbalEDU Website

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Twitter


Location


Interests

Found 6 results

  1. Well, i know that service to show "what we have inside" already are in KSP vanila, but to my mind it are complicticated for design. But i remembered a way how to do this with any item or in one click. Dunno, are such thingie needed for community? However, trick is simple enuff. We just need to find a model's transform (any or all) that we need to do translucent, get its renderer, material than - and change its shader on the fly. Of course we need proper shader. If the need disappears, we need to do reverse operation. I have not saw someting like that (missed?), so meet X-ray. It can be added like a partModule to any part (or any mesh in part) without any 3D and Unity work.
  2. This is an updated version of the Reflection Plugin created by Razchek with some additional features and fixes that provide more control over reflective materials and non-realtime updating for performance increases. The original thread is to be found here: [0.21.x] ReflectiveShader Plugin (Version 1.2) This plugin is released as Public Domain as was the original plugin by Razchek. Plugin and source downloads: Latest Download! (for KSP 1.0.5) Reflection Plugin github repository Confirmed working with 1.0.5 Version 2.0.1 for KSP 1.1.2 in progress Not available yet. Version 2.0 Fixed long standing detached transform bug Fixed rendering artifacts Switched to multi-pass rendering (as done in Texture Replacer... MULTI-PAAAASSSS) Compiled for KSP 1.0.5 Included version file BETA Version 1.2 See Changelog in next post Changes from the original: Can use ReflectionColor in place of ReflectionStrength. If ReflectionStrength is less than 0 then ReflectionColor is used instead. Default behavior retained. NearClipPlane added. Set this to if unwanted portions of your Part are being reflected. UpdateRate added. This is the number of seconds in GAME TIME (not real time) between environment map updates. Eliminates realtime reflection and increases performance. Texture scaling bug fixed. (if textures were scaled in original material, it wasn't carried over to reflective material) Known issues. The reflection camera may reflect parts of the model to which it is attached. Use NearClipPlane to eliminate unwanted reflections. (value should be set to distance in meters. If the part of your mesh that is showing up in reflections is 1 meter away from the center of geometry then set NearClipPlane to 1 or greater) updateRate is not working properly in SW1.0. The cubemap is updated continuously. As soon as I get the update rates properly sorted I'll be releasing a new version that also restores all missing shaders. Alpha channel controls strength:
  3. I wanted to share a easy way to use your homegrown shaders within KSP. 0. install unity 5.4.0p4 and the KSP parttools (and the parttools bugfix ) 1. put your own shaders into a folder (Shaders) 2. tag your shaders as a seperate AssetBundle (or create a new one) 3. start the KSP asset compiler 4, check if the files are in the bundle 5. press show all, if OK . 6.press the build button 6. you will find the shader.ksp file in the AssetBundles folder of the folder you put your unity project. 7. rename the file as you wish and place it in the KSP GameData folder. Now we have the shader compiled and ready to be used within KSP. Next we need find a way to access the shader, because the Shader.find(shadername) function will not find it. using System.Collections.Generic; using UnityEngine; // only start once at the MainMenu [KSPAddon(KSPAddon.Startup.MainMenu, true)] public class KSPShader : MonoBehaviour { private Dictionary<string, Shader> allShaders = new Dictionary<string, Shader>(); /// <summary> /// Initial Unity Awake call /// </summary> public void Awake() { LoadShaders(); var myshader = GetShader("ShaderNG/TypeC"); if (myshader == null) { Debug.Log("Shader ShaderNG/TypeC was not loaded"); } else { Debug.Log("Shader found"); } } internal void LoadShaders() { // here we force unity to load all shaders, even those that are not used by any material, so we can find ours. Shader.WarmupAllShaders(); foreach (var shader in Resources.FindObjectsOfTypeAll<Shader>()) { if (!allShaders.ContainsKey(shader.name)) { allShaders.Add(shader.name, shader); } } } // replacement function for Shader.find(). will return any valid shader in the System. internal Shader GetShader(string name) { if (allShaders.ContainsKey(name)) { return allShaders[name]; } else { return null; } } } } The earliest time to access the shaders is the Awake() function at the MainMenue.
  4. Do we can expect PBR shader support soon for Substances Painter 2 ?
  5. A recent Devnote revealed that the upcoming, ever looming 1.1 update will bring with it an overhaul to the part shaders, and will be using the Unity 5 standard shader: Given that the default parts won't have reworked textures, I decided this was an opportunity to create a set of parts tailored specifically to the new shader and render model. Of course, since they will be created for the new shader, these parts won't be available for use in-game until soon after the update is released. I figured this will provide me with a window of time to get ahead of the game, so to speak. Without further ado, here are the parts in progress so far: This project is in very early development, and as such it's very flexible to feedback as I go along. Please speak up if you have ideas, I'd love to include as much input from the community as possible! DOWNLOAD: Github An extra big thanks to @Shadowmage for the use of thier SSTU plugin for parachutes and heat shields!
  6. Forgive me if this has been requested before or currently exists in some manner and has eluded my Google-Fu, but I would be grateful if someone could implement an addon that would allow color balance and saturation adjustment from within KSP. I'm currently using a third party injector (ReShade) to accomplish this, and it's relatively effective, but I'd much prefer something a little more native with less overhead. It might just appeal to my personal taste, but here are some examples of what I'm trying to accomplish: Before After Before After