File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
project/Box2DTestbed/Framework Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 21
21
#include " sre/Mesh.hpp"
22
22
#include " Test.h"
23
23
#include < sre/Inspector.hpp>
24
+ #include " sre/Resource.hpp"
24
25
#include < glm/ext.hpp>
25
26
26
27
//
@@ -438,10 +439,15 @@ void main(void)
438
439
}
439
440
)" ;
440
441
442
+ auto filenameVertex = " vertexShaderSource" ;
443
+ sre::Resource::set (filenameVertex, vertexShaderSource);
444
+ auto filenameFragment = " fragmentShaderSource" ;
445
+ sre::Resource::set (filenameFragment, fragmentShaderSource);
446
+
441
447
442
448
meshMaterial = sre::Shader::create ()
443
- . withSourceString (vertexShaderSource, sre::ShaderType::Vertex)
444
- .withSourceString (fragmentShaderSource ,sre::ShaderType::Fragment)
449
+ . withSourceResource (filenameVertex, sre::ShaderType::Vertex)
450
+ .withSourceResource (filenameFragment ,sre::ShaderType::Fragment)
445
451
.withBlend (sre::BlendType::AlphaBlending)
446
452
.withDepthTest (false )
447
453
.withDepthWrite (false )
You can’t perform that action at this time.
0 commit comments