Skip to content

Instantly share code, notes, and snippets.

View ZsemberiDaniel's full-sized avatar

Zsemberi Dániel ZsemberiDaniel

View GitHub Profile
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
// 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;
# 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(" ")))
#include <iostream>
#include <vector>
using namespace std;
int main() {
// kis gyorsitas
ios::sync_with_stdio(false);
int N, A, B;
#!/bin/bash
increase=0
if [ $# -lt 1 ] || [ $1 -gt 0 ];then
increase=1
else
increase=-1
fi
spotify_at=-1
@ZsemberiDaniel
ZsemberiDaniel / Colors
Last active May 22, 2018 19:39 — forked from louisvalet/Colors
I heard you needed colors
using System;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public static class Colors
{