Skip to content

Commit

Permalink
Merge pull request #13 from 2024FALL-SWPP/stage2_modeling
Browse files Browse the repository at this point in the history
add: stage2 scene
  • Loading branch information
integraldx authored Nov 11, 2024
2 parents e1615a1 + 2b0dd1f commit 12cd303
Show file tree
Hide file tree
Showing 1,395 changed files with 1,157,234 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC/Skybox Cubemap Extended.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC/Skybox Cubemap Extended/Core.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC/Skybox Cubemap Extended/Core/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Boxophobic.SkyboxCubemapExtended.Editor",
"references": [
"GUID:10f1dd4cfd6afb54da274d7d818bd8f6",
"GUID:825ad574da7360d4e8aea558f272972e"
],
"optionalUnityReferences": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": []
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// Cristian Pop - https://boxophobic.com/

using UnityEngine;
using UnityEditor;
using Boxophobic.StyledGUI;
using Boxophobic.Utils;

public class SkyboxExtendedHub : EditorWindow
{
string assetFolder = "Assets/BOXOPHOBIC/Atmospheric Height Fog";

int assetVersion;
string bannerVersion;

Color bannerColor;
string bannerText;
static SkyboxExtendedHub window;

[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Hub", false, 1070)]
public static void ShowWindow()
{
window = GetWindow<SkyboxExtendedHub>(false, "Skybox Cubemap Extended", true);
window.minSize = new Vector2(300, 200);
}

void OnEnable()
{
//Safer search, there might be many user folders
string[] searchFolders;

searchFolders = AssetDatabase.FindAssets("Skybox Cubemap Extended");

for (int i = 0; i < searchFolders.Length; i++)
{
if (AssetDatabase.GUIDToAssetPath(searchFolders[i]).EndsWith("Skybox Cubemap Extended.pdf"))
{
assetFolder = AssetDatabase.GUIDToAssetPath(searchFolders[i]);
assetFolder = assetFolder.Replace("/Skybox Cubemap Extended.pdf", "");
}
}

assetVersion = SettingsUtils.LoadSettingsData(assetFolder + "/Core/Editor/Version.asset", -99);

bannerVersion = assetVersion.ToString();
bannerVersion = bannerVersion.Insert(1, ".");
bannerVersion = bannerVersion.Insert(3, ".");

bannerColor = new Color(0.95f, 0.61f, 0.46f);
bannerText = "Skybox Cubemap Extended";
}

void OnGUI()
{
DrawToolbar();
StyledGUI.DrawWindowBanner(bannerColor, bannerText, bannerVersion);

GUILayout.BeginHorizontal();
GUILayout.Space(15);

EditorGUILayout.HelpBox("The included shader is compatible by default with Standard and Universal Render Pipelines!", MessageType.Info, true);

GUILayout.Space(13);
GUILayout.EndHorizontal();
}

void DrawToolbar()
{
var GUI_TOOLBAR_EDITOR_WIDTH = this.position.width / 4.0f + 1;

var styledToolbar = new GUIStyle(EditorStyles.toolbarButton)
{
alignment = TextAnchor.MiddleCenter,
fontStyle = FontStyle.Normal,
fontSize = 11,
};

GUILayout.Space(1);
GUILayout.BeginHorizontal();

if (GUILayout.Button("Discord Server", styledToolbar, GUILayout.Width(GUI_TOOLBAR_EDITOR_WIDTH)))
{
Application.OpenURL("https://discord.com/invite/znxuXET");
}
GUILayout.Space(-1);

if (GUILayout.Button("Documentation", styledToolbar, GUILayout.Width(GUI_TOOLBAR_EDITOR_WIDTH)))
{
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.gqix7il7wlwd");
}
GUILayout.Space(-1);

if (GUILayout.Button("Changelog", styledToolbar, GUILayout.Width(GUI_TOOLBAR_EDITOR_WIDTH)))
{
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.1rbujejuzjce");
}
GUILayout.Space(-1);

if (GUILayout.Button("Write A Review", styledToolbar, GUILayout.Width(GUI_TOOLBAR_EDITOR_WIDTH)))
{
Application.OpenURL("https://assetstore.unity.com/packages/vfx/shaders/free-skybox-extended-shader-107400#reviews");
}
GUILayout.Space(-1);

GUILayout.EndHorizontal();
GUILayout.Space(4);
}
}


Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//Cristian Pop - https://boxophobic.com/

using UnityEngine;
using UnityEditor;
using System.Collections.Generic;

public class SkyboxExtendedShaderGUI : ShaderGUI
{
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
{
//base.OnGUI(materialEditor, props);

var material0 = materialEditor.target as Material;

DrawDynamicInspector(material0, materialEditor, props);
}

void DrawDynamicInspector(Material material, MaterialEditor materialEditor, MaterialProperty[] props)
{
var customPropsList = new List<MaterialProperty>();

for (int i = 0; i < props.Length; i++)
{
var prop = props[i];

if (prop.flags == MaterialProperty.PropFlags.HideInInspector)
continue;

customPropsList.Add(prop);
}

//Draw Custom GUI
for (int i = 0; i < customPropsList.Count; i++)
{
var prop = customPropsList[i];

materialEditor.ShaderProperty(prop, prop.displayName);
}

GUILayout.Space(10);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using UnityEditor;
using UnityEngine;

public static class SkyboxExtendedWindows
{
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Publisher Page", false, 8000)]
public static void MoreAssets()
{
Application.OpenURL("https://assetstore.unity.com/publishers/20529");
}

[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Discord Server", false, 8001)]
public static void Discord()
{
Application.OpenURL("https://discord.com/invite/znxuXET");
}

[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Documentation", false, 8002)]
public static void Documentation()
{
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.gqix7il7wlwd");
}

[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Changelog", false, 8003)]
public static void Changelog()
{
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.1rbujejuzjce");
}

[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Write A Review", false, 9999)]
public static void WriteAReview()
{
Application.OpenURL("https://assetstore.unity.com/packages/vfx/shaders/free-skybox-extended-shader-107400#reviews");
}
}


Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 93308045fbb3c5e42ba5ccb66d848632, type: 3}
m_Name: Version
m_EditorClassIdentifier:
data: 210

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC/Skybox Cubemap Extended/Core/Functions.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 78b2425a2284af743826c689403a4924, type: 3}
m_Name: Compute Rotation Y
m_EditorClassIdentifier:
m_functionInfo: "// Made with Amplify Shader Editor\n// Available at the Unity Asset
Store - http://u3d.as/y3X \n/*ASEBEGIN\nVersion=18101\n1927;7;1906;1014;1344.35;48.9646;1;True;False\nNode;AmplifyShaderEditor.SimpleAddOpNode;71;0,128;Inherit;False;3;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionInput;38;-896,-1024;Inherit;False;Vertex
Pos;3;0;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;83;-896,-256;Inherit;False;40;VertexPos;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;74;-384,-512;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;54;-896,256;Inherit;False;82;VertexPosOtherAxis;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;57;-896,352;Inherit;False;44;Angle;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;82;-128,-256;Float;False;VertexPosOtherAxis;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;50;-128,-512;Float;False;VertexPosRotationAxis;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;40;-512,-1024;Half;False;VertexPos;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.GetLocalVarNode;70;-896,128;Inherit;False;50;VertexPosRotationAxis;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.RegisterLocalVarNode;44;-512,-1152;Half;False;Angle;-1;True;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.FunctionInput;43;-896,-1152;Inherit;False;Angle;1;1;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;58;-896,672;Inherit;False;82;VertexPosOtherAxis;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;84;-640,-256;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.CosOpNode;56;-384,352;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.SinOpNode;64;-384,752;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.Vector3Node;85;-896,512;Inherit;False;Constant;_Vector0;Vector
0;0;0;Create;True;0;0;False;0;False;0,1,0;0,0,0;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3\nNode;AmplifyShaderEditor.GetLocalVarNode;63;-896,752;Inherit;False;44;Angle;1;0;OBJECT;0;False;1;FLOAT;0\nNode;AmplifyShaderEditor.GetLocalVarNode;49;-896,-512;Inherit;False;40;VertexPos;1;0;OBJECT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;55;-256,256;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.DynamicAppendNode;81;-384,-256;Inherit;False;FLOAT3;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.BreakToComponentsNode;86;-640,-512;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15\nNode;AmplifyShaderEditor.CrossProductOpNode;69;-512,512;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.SimpleMultiplyOpNode;61;-256,512;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0\nNode;AmplifyShaderEditor.FunctionOutput;19;256,128;Inherit;False;True;-1;;0;False;1;0;FLOAT3;0,1,1;False;1;FLOAT3;0\nWireConnection;71;0;70;0\nWireConnection;71;1;55;0\nWireConnection;71;2;61;0\nWireConnection;74;1;86;1\nWireConnection;82;0;81;0\nWireConnection;50;0;74;0\nWireConnection;40;0;38;0\nWireConnection;44;0;43;0\nWireConnection;84;0;83;0\nWireConnection;56;0;57;0\nWireConnection;64;0;63;0\nWireConnection;55;0;54;0\nWireConnection;55;1;56;0\nWireConnection;81;0;84;0\nWireConnection;81;2;84;2\nWireConnection;86;0;49;0\nWireConnection;69;0;85;0\nWireConnection;69;1;58;0\nWireConnection;61;0;69;0\nWireConnection;61;1;64;0\nWireConnection;19;0;71;0\nASEEND*/\n//CHKSM=1A6275775035F95A0C9D68F3F00C78326017E145"
m_functionName:
m_description:
m_additionalIncludes:
m_additionalIncludes: []
m_outsideIncludes: []
m_additionalPragmas:
m_additionalPragmas: []
m_outsidePragmas: []
m_additionalDirectives:
m_validData: 0
m_isDirty: 0
m_moduleName: ' Additional Directives'
m_independentModule: 1
m_additionalDirectives: []
m_shaderFunctionDirectives: []
m_nativeDirectives: []
m_nativeDirectivesIndex: -1
m_nativeDirectivesFoldout: 0
m_directivesSaveItems: []
m_nodeCategory: 0
m_customNodeCategory: The Vegetation Engine
m_previewPosition: 0
m_hidden: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/BOXOPHOBIC/Skybox Cubemap Extended/Core/Shaders.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12cd303

Please sign in to comment.