This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) | |
| // Distributed under the MIT license. | |
| // | |
| // Alternative to MaterialSubsurfaceScatteringFeature: implements subsurface translucency | |
| // per the Khronos KHR_materials_subsurface reference model, entirely in the forward pass. | |
| // No compositor node, no SubsurfaceScatteringRenderFeature, no MaterialIndex render target — | |
| // see the .sdsl file in this folder for the shading math and rationale. | |
| // | |
| // Because this implements IMaterialSubsurfaceScatteringFeature (the same marker interface as | |
| // the built-in feature), it shows up as a sibling option in the same "Subsurface Scattering" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Stride.Assets.Models; | |
| using Stride.Core; | |
| using Stride.Core.BuildEngine; | |
| using Stride.Core.Mathematics; | |
| using Stride.Extensions; | |
| using Stride.Graphics; | |
| using Stride.Graphics.Data; | |
| using Stride.Rendering; | |
| using System; | |
| using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| [InitializeOnLoad] | |
| public class RXLookingGlass | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Stride.Games; | |
| using Stride.Rendering; | |
| using System; | |
| using Stride.Core.Serialization; | |
| using Stride.Core; | |
| using Stride.Physics; | |
| using System.Collections.Generic; | |
| using Stride.Core.Mathematics; | |
| public static class MeshExtensions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class YourGameDefinition : Stride.Engine.Game | |
| { | |
| protected override void BeginRun() | |
| { | |
| base.BeginRun(); | |
| foreach( var feature in SceneSystem.GraphicsCompositor.RenderFeatures ) | |
| { | |
| if( feature is MeshRenderFeature meshRf ) | |
| { | |
| meshRf.ComputeFallbackEffect += FallbackForAsyncCompilation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using ImmoApocalypse.Code.Core.Structs; | |
| using Stride.Core; | |
| using Stride.Engine; | |
| using System; | |
| using System.Windows.Media.Animation; | |
| namespace Core; | |
| [DataContract(nameof(AnimationEvent))] | |
| [AllowMultipleComponents] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using UnityEngine.Rendering.Universal; | |
| using UnityEngine.Rendering; | |
| using UnityEngine.Scripting.APIUpdating; | |
| namespace UnityEngine.Experimental.Rendering.Universal | |
| { | |
| [MovedFrom("UnityEngine.Experimental.Rendering.LWRP")] public class RenderObjectsPass : ScriptableRenderPass | |
| { | |
| RenderQueueType renderQueueType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using UnityEngine.Rendering.Universal; | |
| using UnityEngine.Rendering; | |
| using UnityEngine.Scripting.APIUpdating; | |
| namespace UnityEngine.Experimental.Rendering.Universal | |
| { | |
| [MovedFrom("UnityEngine.Experimental.Rendering.LWRP")]public enum RenderQueueType | |
| { | |
| Opaque, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Original shader by @bgolus, modified slightly by @alexanderameye for URP, modified slightly more | |
| // by @gravitonpunch for ECS/DOTS/HybridRenderer. | |
| // https://twitter.com/bgolus | |
| // https://medium.com/@bgolus/the-quest-for-very-wide-outlines-ba82ed442cd9 | |
| // https://alexanderameye.github.io/ | |
| // https://twitter.com/alexanderameye/status/1332286868222775298 | |
| Shader "Hidden/Outline" | |
| { | |
| Properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "MyShader/URP_Normal" | |
| { | |
| Properties | |
| { | |
| [Header(Base Color)] | |
| [MainTexture]_BaseMap("_BaseMap (Albedo)", 2D) = "white" {} | |
| [HDR][MainColor]_BaseColor("_BaseColor", Color) = (1,1,1,1) | |
| [Header(Normal)] | |
| [MainTexture]_NormalMap("_NormalMap", 2D) = "white" {} | |
| } |
NewerOlder