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
void main() | |
{ | |
float currentMillis = GetTime() / float(1000.0); | |
float2 coords = GetCoordinates(); | |
float lineCount = GetWindowResolution().y / 2.0; | |
// scanlines | |
int lineIndex = int( ( coords.y + currentMillis * 0.5 ) * lineCount ); | |
#ifdef API_OPENGL | |
float lineIntensity = mod(float(lineIndex), 2); |
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
// online dev: https://www.onlinegdb.com/online_c++_compiler | |
#include <cstring> | |
#include <iostream> | |
#include <cstdarg> | |
#include <algorithm> | |
using namespace std; | |
class StringEx { |
OlderNewer