| 200 | ShaderMonjori::ShaderMonjori() {} |
| 201 | |
| 202 | bool ShaderMonjori::init() |
| 203 | { |
| 204 | if (ShaderTestDemo::init()) |
| 205 | { |
| 206 | auto sn = ShaderNode::shaderNodeWithVertex("", "custom/example_Monjori_fs"); |
| 207 | |
| 208 | auto s = Director::getInstance()->getWinSize(); |
| 209 | sn->setPosition(Vec2(s.width / 2, s.height / 2)); |
| 210 | |
| 211 | addChild(sn); |
| 212 | |
| 213 | return true; |
| 214 | } |
| 215 | |
| 216 | return false; |
| 217 | } |
| 218 | |
| 219 | std::string ShaderMonjori::title() const |
| 220 | { |
no test coverage detected