Переглянути джерело

Merge remote-tracking branch 'DKGL_SAMPLE_GITHUB/master' into develop-deferredlight

Heedong Lee 4 роки тому
джерело
коміт
b9830e17df

+ 5
- 1
README.md Переглянути файл

@@ -1,4 +1,4 @@
1
-# DKGL_SAMPLE
1
+# DKGL_Samples
2 2
 ScratchPad for DKGL-Dev Branch (Not the master branch), Let's have fun
3 3
 
4 4
 Let's have fun with DKGL
@@ -8,7 +8,9 @@ How to Setup
8 8
 Clone to the just-upper directory(..\) is the best choice.
9 9
 
10 10
    ex)  C:\MyProjects\
11
+            
11 12
              +--- DKGL
13
+             
12 14
              +--- DKGL_Samples (This Project)
13 15
 
14 16
 2. Link the symbolic link to DKGL\DK foler to DKGL_Sampels\DK directory below
@@ -24,7 +26,9 @@ This project is using https://www.dkscript.com/ for wiki.
24 26
 1. 적당한 디렉토리에 DKGL 을 클론 받는다.
25 27
    보통 상위 디렉토리 (현재 프로젝트:DKGL_Samples 와 동일한 레벨) 에 받는것이 좋다.. 
26 28
    ex)  C:\MyProjects\
29
+             
27 30
              +--- DKGL
31
+             
28 32
              +--- DKGL_Samples (이 프로젝트)
29 33
 
30 34
 2. mklink /D DK ..\DKGL\DK

+ 1
- 0
Samples/Data/meshes/Dragon/LICENSE.txt Переглянути файл

@@ -0,0 +1 @@
1
+Stanford Scan : http://www.graphics.stanford.edu/data/3Dscanrep/

+ 5
- 0
Samples/Data/meshes/VikingRoom/Copyright.txt Переглянути файл

@@ -0,0 +1,5 @@
1
+Open source model by nigelgoh
2
+Creative Commons Attribution 4.0 International License
3
+
4
+Original Source : https://sketchfab.com/3d-models/viking-room-a49f1b8e4f5c4ecf9e1fe7d81915ad38
5
+

BIN
Samples/Data/meshes/VikingRoom/viking_room.obj (Збережено з Git LFS) Переглянути файл

2
+oid sha256:0af27cd99ce43f48c89d9c73cff47cbdfc3d29c3754b29bd0ccfe7e3fe7de869
3
+size 479536

BIN
Samples/Data/meshes/VikingRoom/viking_room.png (Збережено з Git LFS) Переглянути файл

2
+oid sha256:f6589538b20ecd707afa9cd9e24ca288f8199de36e1d3c9e7ff09f296c26af9b
3
+size 1074965

BIN
Samples/Data/meshes/chalet/chalet.jpg (Збережено з Git LFS) Переглянути файл

2
-oid sha256:44eb03bd983abc03b617474bddec1d26eb52c8f8101624a748cc64860e8c8e6b
3
-size 3056003

BIN
Samples/Data/meshes/chalet/chalet.obj (Збережено з Git LFS) Переглянути файл

2
-oid sha256:38a4c1f87162da4bb7000160fca57aae7450a261cca1ef5e9fb35dd519ffdf9b
3
-size 33200100

BIN
Samples/Data/meshes/chalet/chalet.png (Збережено з Git LFS) Переглянути файл

2
-oid sha256:7facbad7f0415d7acaeec333e04c0b6be88dce1b8cc847a24c34b92ea5c378fc
3
-size 19292996

+ 2
- 2
Samples/Mesh/Mesh.cpp Переглянути файл

@@ -140,7 +140,7 @@ public:
140 140
 	{
141 141
 
142 142
 		DKLog("Loading Mesh");
143
-        DKString path = resourcePool.ResourceFilePath("meshes/car/car.obj");
143
+        DKString path = resourcePool.ResourceFilePath("meshes/VikingRoom/viking_room.obj");
144 144
 		SampleMesh->LoadFromObjFile(DKStringU8(path));
145 145
 	}
146 146
 
@@ -202,7 +202,7 @@ public:
202 202
         DKObject<DKCommandQueue> queue = device->CreateCommandQueue(DKCommandQueue::Graphics);
203 203
 
204 204
 		// create texture
205
-		DKObject<DKTexture> texture = LoadTexture2D(queue, resourcePool.LoadResourceData("meshes/chalet/chalet.png"));
205
+		DKObject<DKTexture> texture = LoadTexture2D(queue, resourcePool.LoadResourceData("meshes/VikingRoom/viking_room.png"));
206 206
 		// create sampler
207 207
 		DKSamplerDescriptor samplerDesc = {};
208 208
 		samplerDesc.magFilter = DKSamplerDescriptor::MinMagFilterLinear;