Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8a80e2d
Design Doc
TianhongZhou Nov 5, 2025
479fe23
Refine language in README for clarity
Lanbiubiu1 Nov 6, 2025
d49536d
Init Unity
TianhongZhou Nov 6, 2025
b1ef01d
Base pipeline
TianhongZhou Nov 6, 2025
2fa36a7
Implement upsampling
TianhongZhou Nov 8, 2025
11a7e06
Implement 3 kernels
TianhongZhou Nov 10, 2025
5595df4
update kernel
Lanbiubiu1 Nov 10, 2025
7291994
Debug
TianhongZhou Nov 10, 2025
f02857c
fix last two kernel
Lanbiubiu1 Nov 10, 2025
de0f29e
Debug
TianhongZhou Nov 11, 2025
6f8c977
Merge
TianhongZhou Nov 11, 2025
7485add
update
Lanbiubiu1 Nov 11, 2025
c72df73
Debug
TianhongZhou Nov 11, 2025
070d59f
Merge branch 'kernel_f_e_b' of https://github.com/TianhongZhou/566-fi…
TianhongZhou Nov 11, 2025
03f54eb
Erosion work
TianhongZhou Nov 11, 2025
37384e4
Update kernels
TianhongZhou Nov 11, 2025
79f3dd0
Deposit work
TianhongZhou Nov 11, 2025
6cff5c7
fix thermal
Lanbiubiu1 Nov 12, 2025
f5b6d1f
Merge pull request #1 from TianhongZhou/kernel_f_e_b
TianhongZhou Nov 12, 2025
c30972e
Finish M1
TianhongZhou Nov 12, 2025
628eb11
update per material
Lanbiubiu1 Nov 15, 2025
9a5b6a2
material map generation script
Lanbiubiu1 Nov 17, 2025
1fb265d
Edit algorithm to be material different
TianhongZhou Nov 18, 2025
1511692
Edit scene
TianhongZhou Nov 18, 2025
a92e8df
Update Erosion.compute
Lanbiubiu1 Nov 18, 2025
74af303
Merge pull request #2 from TianhongZhou/materials
TianhongZhou Nov 18, 2025
a6a05f6
fix material map sample issue
Lanbiubiu1 Nov 20, 2025
ec1e1a7
Add texture
TianhongZhou Nov 21, 2025
3d49c0b
Edit texture and debug
TianhongZhou Nov 21, 2025
ea56313
Update Erosion.compute
Lanbiubiu1 Nov 21, 2025
07df310
Editable material map
TianhongZhou Nov 22, 2025
a9a7c1e
Merge branch 'main' of https://github.com/TianhongZhou/566-final-project
TianhongZhou Nov 22, 2025
26e68a8
update readme
Lanbiubiu1 Nov 23, 2025
c5c5f62
Merge pull request #3 from TianhongZhou/materials
Lanbiubiu1 Nov 23, 2025
bfbbfd2
Update README.md
Lanbiubiu1 Nov 28, 2025
8c5bfad
Update README with project overview and details
Lanbiubiu1 Nov 28, 2025
b1e4d23
Add asset link to README and format changes
Lanbiubiu1 Nov 28, 2025
bd820ab
update readme
Lanbiubiu1 Nov 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/

# Recordings can get excessive in size
/[Rr]ecordings/

# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
.vs/

# Gradle cache directory
.gradle/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage
*.app

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"visualstudiotoolsforunity.vstuc"
]
}
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Unity",
"type": "vstuc",
"request": "attach"
}
]
}
55 changes: 55 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.gitmodules": true,
"**/*.booproj": true,
"**/*.pidb": true,
"**/*.suo": true,
"**/*.user": true,
"**/*.userprefs": true,
"**/*.unityproj": true,
"**/*.dll": true,
"**/*.exe": true,
"**/*.pdf": true,
"**/*.mid": true,
"**/*.midi": true,
"**/*.wav": true,
"**/*.gif": true,
"**/*.ico": true,
"**/*.jpg": true,
"**/*.jpeg": true,
"**/*.png": true,
"**/*.psd": true,
"**/*.tga": true,
"**/*.tif": true,
"**/*.tiff": true,
"**/*.3ds": true,
"**/*.3DS": true,
"**/*.fbx": true,
"**/*.FBX": true,
"**/*.lxo": true,
"**/*.LXO": true,
"**/*.ma": true,
"**/*.MA": true,
"**/*.obj": true,
"**/*.OBJ": true,
"**/*.asset": true,
"**/*.cubemap": true,
"**/*.flare": true,
"**/*.mat": true,
"**/*.meta": true,
"**/*.prefab": true,
"**/*.unity": true,
"build/": true,
"Build/": true,
"Library/": true,
"library/": true,
"obj/": true,
"Obj/": true,
"ProjectSettings/": true,
"temp/": true,
"Temp/": true
},
"dotnet.defaultSolution": "566-final-project.sln"
}
8 changes: 8 additions & 0 deletions Assets/Editor.meta

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

60 changes: 60 additions & 0 deletions Assets/Editor/Material Map Painter Editor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(MaterialMapPainter))]
public class MaterialMapPainterEditor : Editor
{
MaterialMapPainter painter;

void OnEnable()
{
painter = (MaterialMapPainter)target;
SceneView.duringSceneGui += OnSceneGUIHandler;
}

void OnDisable()
{
SceneView.duringSceneGui -= OnSceneGUIHandler;
}

public override void OnInspectorGUI()
{
DrawDefaultInspector();

EditorGUILayout.HelpBox(
"Hold and drag Ctrl + left click on scene, draw Rock/Soil.Snow",
MessageType.Info);
}

void OnSceneGUIHandler(SceneView sceneView)
{
if (!painter || !painter.paintingEnabled)
return;
if (!painter.targetTerrain)
return;

Event e = Event.current;

bool isPaintEvent =
(e.button == 0) &&
(e.modifiers & EventModifiers.Control) != 0 &&
(e.type == EventType.MouseDrag || e.type == EventType.MouseDown);

Ray ray = HandleUtility.GUIPointToWorldRay(e.mousePosition);
if (Physics.Raycast(ray, out var hit))
{
Handles.color = Color.yellow;
Handles.DrawWireDisc(hit.point, Vector3.up, painter.brushWorldRadius);

if (isPaintEvent)
{
Undo.RecordObject(painter.pipeline.materialMaps, "Paint Material Map");
painter.PaintAtWorldPos(hit.point);
e.Use();
}
}

if (isPaintEvent)
sceneView.Repaint();
}
}
11 changes: 11 additions & 0 deletions Assets/Editor/Material Map Painter Editor.cs.meta

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

Binary file added Assets/New Terrain.asset
Binary file not shown.
8 changes: 8 additions & 0 deletions Assets/New Terrain.asset.meta

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

34 changes: 34 additions & 0 deletions Assets/Readme.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%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: fcf7219bab7fe46a1ad266029b2fee19, type: 3}
m_Name: Readme
m_EditorClassIdentifier:
icon: {fileID: 2800000, guid: 727a75301c3d24613a3ebcec4a24c2c8, type: 3}
title: URP Empty Template
sections:
- heading: Welcome to the Universal Render Pipeline
text: This template includes the settings and assets you need to start creating with the Universal Render Pipeline.
linkText:
url:
- heading: URP Documentation
text:
linkText: Read more about URP
url: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest
- heading: Forums
text:
linkText: Get answers and support
url: https://forum.unity.com/forums/universal-render-pipeline.383/
- heading: Report bugs
text:
linkText: Submit a report
url: https://unity3d.com/unity/qa/bug-reporting
loadedLayout: 1
8 changes: 8 additions & 0 deletions Assets/Readme.asset.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/Scenes.meta

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

Loading