This file contains hidden or 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
MINTA: | |
https://i.imgur.com/v8D1mUA.png | |
https://i.imgur.com/NmehTTV.png | |
Csináljunk egy tetszőleges parametrizált felületet a 'síkösszehajtás' módszerrel (az én képemen tórusz látható az óra alapján)! | |
Valósítsunk meg a VAO-ba egy új bementi változót az eddigiek mellé. | |
Ez pepita mintában változzon 0 és 1 között a vertexekben. Pl 5x5 sík esetén: | |
0 1 0 1 0 | |
1 0 1 0 1 | |
0 1 0 1 0 |
This file contains hidden or 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
// Torusz feladat: | |
const int N = 30; | |
const int M = 30; | |
std::vector<Vertex> vert((N + 1) * (M + 1)); | |
for (int i = 0; i <= N; ++i) | |
for (int j = 0; j <= M; ++j) | |
{ | |
float u = i / (float)N; | |
float v = j / (float)M; |
This file contains hidden or 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
# elso sor beolvasasa | |
N, A, B = list(map(int, input().split(" "))) | |
A -= 1 | |
B -= 1 | |
# ebben taroljuk, hogy kinek ki a fonoke, kezdetben minden -1 | |
bosses = [-1] * N | |
for i in range(N - 1): | |
boss, subordinate = list(map(int, input().split(" "))) |
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int main() { | |
// kis gyorsitas | |
ios::sync_with_stdio(false); | |
int N, A, B; |
This file contains hidden or 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
#!/bin/bash | |
increase=0 | |
if [ $# -lt 1 ] || [ $1 -gt 0 ];then | |
increase=1 | |
else | |
increase=-1 | |
fi | |
spotify_at=-1 |
This file contains hidden or 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
using System; | |
using System.Reflection; | |
using System.Linq; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public static class Colors | |
{ |