| 42 | )"; |
| 43 | |
| 44 | static std::string GetFinalShaderCode(const char* codeSnippet, bool isDesktop) { |
| 45 | if (isDesktop) { |
| 46 | return std::string("#version 140\n\n") + codeSnippet; |
| 47 | } else { |
| 48 | return std::string("#version 300 es\n\n") + codeSnippet; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | std::shared_ptr<CornerPinEffect> CornerPinEffect::Make(const Point& upperLeft, |
| 53 | const Point& upperRight, |