-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f972f97
commit 877a5e4
Showing
12 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceambient/ | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceAmbient("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nAmbient color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end | ||
|
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceambient/ | ||
|
||
--Name of script is GetPrefabInstanceAmbient2.lua | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceAmbient("this") | ||
|
||
message = string.format("\nAmbient color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end | ||
|
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancediffuse/ | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceDiffuse("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nDiffuse color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancediffuse/ | ||
|
||
-- Name of script is GetPrefabInstanceDiffuse2.lua | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceDiffuse("this") | ||
|
||
message = string.format("\nDiffuse color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceemission/ | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceEmission("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nEmission color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceemission/ | ||
|
||
--Name of script is GetPrefabInstanceEmission2.lua | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceEmission("this") | ||
|
||
message = string.format("\nEmission color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceshininess/ | ||
|
||
value = 0.0 | ||
|
||
function Init() | ||
value = GetPrefabInstanceShininess("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nShininess is : (%.2f)", value) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstanceshininess/ | ||
|
||
--Name of script is GetPrefabInstanceShininess2.lua | ||
|
||
value = 0.0 | ||
|
||
function Init() | ||
value = GetPrefabInstanceShininess("this") | ||
|
||
message = string.format("\nShininess is : (%.2f)", value) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancespecular/ | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceSpecular("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nSpecular color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancespecular/ | ||
|
||
--Name of script is GetPrefabInstanceSpecular2.lua | ||
|
||
r = 0.0 | ||
g = 0.0 | ||
b = 0.0 | ||
|
||
function Init() | ||
r, g, b = GetPrefabInstanceSpecular("this") | ||
|
||
message = string.format("\nSpecular color is : (%.2f, %.2f, %.2f)", r, g, b) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancetransparency/ | ||
|
||
value = 0.0 | ||
|
||
function Init() | ||
value = GetPrefabInstanceTransparency("1_VandaEngine17-SamplePack1_wood_pile") | ||
|
||
message = string.format("\nTransparency is : (%.2f)", value) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |
This file contains 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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--Copyright (C) 2023 Ehsan Kamrani | ||
--This file is licensed and distributed under MIT license | ||
|
||
--Explanations: https://vanda3d.org/getprefabinstancetransparency/ | ||
|
||
--Name of script is GetPrefabInstanceTransparency2.lua | ||
|
||
value = 0.0 | ||
|
||
function Init() | ||
value = GetPrefabInstanceTransparency("this") | ||
|
||
message = string.format("\nTransparency is : (%.2f)", value) | ||
PrintConsole(message) | ||
end | ||
|
||
function Update() | ||
|
||
end |