Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project2ProceduralGeneration-Ryan-Chang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MI431-s23-Ryan-Chang
Project2ProceduralGeneration-Ryan-Chang
Commits
3449e4aa
Commit
3449e4aa
authored
2 years ago
by
Chang, Ryan
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused vars
parent
b7d9359f
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/Scripts/TerrainGeneration/TerrainGenJob.cs
+0
-8
0 additions, 8 deletions
Assets/Scripts/TerrainGeneration/TerrainGenJob.cs
Assets/Scripts/TerrainGeneration/TerrainGenThread.cs
+0
-5
0 additions, 5 deletions
Assets/Scripts/TerrainGeneration/TerrainGenThread.cs
with
0 additions
and
13 deletions
Assets/Scripts/TerrainGeneration/TerrainGenJob.cs
+
0
−
8
View file @
3449e4aa
...
...
@@ -13,14 +13,8 @@ public struct TerrainGenJob : IJob
private
float
[,]
heights
;
private
bool
ready
;
public
List
<
float
>
crawlPositionsX
;
public
List
<
float
>
crawlPositionsY
;
public
TerrainGenJob
(
Vector2
initialCrawlPos
,
Vector2Int
gridPos
,
List
<
Octave
>
octaves
,
int
samples
,
TerrainData
data
)
{
crawlPositionsX
=
new
();
crawlPositionsY
=
new
();
heights
=
null
;
ready
=
false
;
...
...
@@ -51,8 +45,6 @@ public struct TerrainGenJob : IJob
{
float2
crawlPos
=
new
((
x
+
InitialCrawlPosition
.
x
*
(
Samples
-
1
))
*
octave
.
frequency
,
(
y
+
InitialCrawlPosition
.
y
*
(
Samples
-
1
))
*
octave
.
frequency
);
crawlPositionsX
.
Add
(
crawlPos
.
x
);
crawlPositionsY
.
Add
(
crawlPos
.
y
);
float
addition
;
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/TerrainGeneration/TerrainGenThread.cs
+
0
−
5
View file @
3449e4aa
...
...
@@ -12,9 +12,6 @@ public class TerrainGenThread
private
float
[,]
heights
;
private
bool
ready
;
public
List
<
float
>
CrawlPositionsX
=
new
();
public
List
<
float
>
CrawlPositionsY
=
new
();
public
TerrainGenThread
(
Vector2
initialCrawlPos
,
Vector2Int
gridPos
,
List
<
Octave
>
octaves
,
int
samples
,
TerrainData
data
)
{
InitialCrawlPosition
=
initialCrawlPos
;
...
...
@@ -44,8 +41,6 @@ public class TerrainGenThread
{
float2
crawlPos
=
new
((
x
+
InitialCrawlPosition
.
x
*
(
Samples
-
1
))
*
octave
.
frequency
,
(
y
+
InitialCrawlPosition
.
y
*
(
Samples
-
1
))
*
octave
.
frequency
);
CrawlPositionsX
.
Add
(
crawlPos
.
x
);
CrawlPositionsY
.
Add
(
crawlPos
.
y
);
float
addition
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment