Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xlinka committed Apr 12, 2023
1 parent f48a14b commit 5be7313
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NEOSPlus/Materials/Effects/Crystal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using BaseX;
using FrooxEngine;
using NEOSPlus.Shaders;

//from https://booth.pm/ja/items/1148311 MIT License
[Category(new string[] { "Assets/Materials/NeosPlus/Effects" })]
public class CrystalMaterial : SingleShaderMaterialProvider
{
Expand Down
2 changes: 1 addition & 1 deletion NEOSPlus/Materials/Effects/UnlitDisplacement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using NEOSPlus.Shaders;

[Category(new string[] { "Assets/Materials/NeosPlus/Effects" })]
public class DisplacementMaterial : SingleShaderMaterialProvider
public class UnlitDisplacementMaterial : SingleShaderMaterialProvider
{
protected override Uri ShaderURL => ShaderInjection.UnlitDisplacement;

Expand Down
6 changes: 3 additions & 3 deletions NEOSPlus/World Presets/NeosPlusAssets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ namespace NEOSPlus
{
internal class NeosPlusAssets
{
public static Uri NeosplusGridSkybox { get; } = new Uri("neosdb:///3db0299a0f5f1d948ad94142ceecc0e5d64b2da9e0e85575d1676271f67a64ec.png"); //placeholder

//NeosPlusGridspace
public static Uri NeosplusGridFloor { get; } = new Uri("neosdb:///3db0299a0f5f1d948ad94142ceecc0e5d64b2da9e0e85575d1676271f67a64ec.png");
public static Uri NeosplusGridParralax { get; } = new Uri("neosdb:///3db0299a0f5f1d948ad94142ceecc0e5d64b2da9e0e85575d1676271f67a64ec.png");
public static Uri NeosplusGridSkybox { get; } = new Uri("neosdb:///ab95b1ca7b6be2c0d295fd7a5226f4896378b4d37edcf3469c4dd5aff09b8d0e.png"); //neos essntials vaporwave
public static Uri NeosplusGridFloor { get; } = new Uri("neosdb:///7bb4ddacb0a6ac924eb01899b4cfc0cd144c11a7ebfa700aea399597e6392889.png");
public static Uri NeosplusGridParralax { get; } = new Uri("neosdb:///7dc13ec82b990e20c8cecc8aec2760430a57550aedd5422fa89305ff2d349da3.png");

}
}
6 changes: 6 additions & 0 deletions NEOSPlus/World Presets/NeosplusGridSpace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ public static void GridSpace(World w)
StaticTexture2D gridTexture = groundSlot.AttachTexture(NeosPlusAssets.NeosplusGridFloor);
gridTexture.FilterMode.Value = TextureFilterMode.Anisotropic;
groundModel.material.MainTex.Target = gridTexture;
groundModel.material.Metallic.Value = 0.2f;
groundModel.material.Glossiness.Value = 0.8f;
groundModel.material.Parallax.Value = 0.11f;
groundModel.material.ParallaxMinSamples.Value = 20f;
groundModel.material.ParallaxMaxSamples.Value = 30f;

//parralax occlusion map
StaticTexture2D ParralaxMap = groundSlot.AttachTexture(NeosPlusAssets.NeosplusGridParralax);
ParralaxMap.FilterMode.Value = TextureFilterMode.Anisotropic;
groundModel.material.ParallaxMap.Target = ParralaxMap;



groundSlot.GlobalRotation = floatQ.LookRotation(float3.Down, float3.Forward);
Expand Down

0 comments on commit 5be7313

Please sign in to comment.