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
using System.Runtime.InteropServices; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class TerrainRenderer : MonoBehaviour | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct Uniforms | |
{ | |
public const int size = sizeof(uint) * 4 + sizeof(float) * 6; |
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
using System.Runtime.InteropServices; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class TerrainRenderer : MonoBehaviour | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct Uniforms | |
{ | |
public const int size = sizeof(uint) * 4 + sizeof(float) * 4; |
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
using System.Runtime.InteropServices; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class TerrainRenderer : MonoBehaviour | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
public struct Uniforms | |
{ | |
public const int size = sizeof(uint) * 4 + sizeof(float) * 3; |
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
#pragma kernel ComputeSizes | |
#pragma kernel ComputeVertices | |
#pragma kernel ComputeTriangles | |
struct Uniforms | |
{ | |
uint subdivisions; | |
uint current_subdivision; | |
uint triangles_count; | |
uint vertex_count; |
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
#pragma kernel ComputeSizes | |
#pragma kernel ComputeVerticesAndIndices | |
struct Uniforms | |
{ | |
uint subdivisions; | |
uint vertex_count; | |
uint index_count; | |
}; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Unity.VisualScripting.Antlr3.Runtime.Tree; | |
using UnityEngine; | |
public class TerrainRenderer : MonoBehaviour | |
{ | |
struct Vertex | |
{ |
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
import 'dart:async'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:bloc/bloc.dart'; | |
import 'package:boinalinha/models/farm.dart'; | |
import 'package:boinalinha/services/data_providers/farm_list.dart'; | |
import './bloc.dart'; | |
class FarmListBloc extends Bloc<FarmListEvent, FarmListState> { | |
final FarmListRepository farmListRepository; |
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
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
import 'package:hive/hive.dart'; | |
class LocationCacheSingleton { | |
static LocationCacheSingleton _instance; | |
static Future<Null> _mutex; |